Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
-rw-r--r--src/pacman/callback.c3
2 files changed, 1 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index ece29985..28a1d01f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -132,9 +132,6 @@ AC_CHECK_PROGS([PYTHON], [python2.5 python2.4 python], [false])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION(0.13.1)
-# Check for math
-AC_CHECK_LIB([m], [sqrt], , AC_MSG_ERROR([math library is needed to compile pacman!]))
-
# Check for libarchive
AC_CHECK_LIB([archive], [archive_read_data], , AC_MSG_ERROR([libarchive is needed to compile pacman!]))
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 3061d2a0..9b855e5e 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -28,7 +28,6 @@
#include <unistd.h>
#include <dirent.h>
#include <wchar.h>
-#include <math.h>
#include <alpm.h>
@@ -475,7 +474,7 @@ void cb_dl_progress(const char *filename, int xfered, int total)
rate = total / (timediff * 1024.0);
/* round elapsed time to the nearest second */
- eta_s = floorf(timediff + 0.5);
+ eta_s = (int)(timediff + 0.5);
} else {
/* compute current average values */
timediff = get_update_timediff(0);