Removed libm dependency.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 21 Jan 2014 22:04:55 +0000 (23:04 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 21 Jan 2014 22:04:55 +0000 (23:04 +0100)
config.mk
src/main.c

index ab39beb..430a8a5 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -36,7 +36,7 @@ CPPFLAGS += -DHAS_GTK3
 endif
 
 # prepare the lib flags used for the linker
-LIBFLAGS = $(shell pkg-config --libs $(LIBS)) -lX11 -lXext -lm
+LIBFLAGS = $(shell pkg-config --libs $(LIBS)) -lX11 -lXext
 
 # normal compiler flags
 CFLAGS  += $(shell pkg-config --cflags $(LIBS))
index b8edaa7..0e666f7 100644 (file)
@@ -19,7 +19,6 @@
 
 #include "config.h"
 #include <sys/stat.h>
-#include <math.h>
 #include "main.h"
 #include "util.h"
 #include "command.h"
@@ -252,7 +251,7 @@ void vb_update_statusbar()
 
     /* show the scroll status */
     max = gtk_adjustment_get_upper(vb.gui.adjust_v) - gtk_adjustment_get_page_size(vb.gui.adjust_v);
-    val = (int)floor(0.5 + (gtk_adjustment_get_value(vb.gui.adjust_v) / max * 100));
+    val = (int)(0.5 + (gtk_adjustment_get_value(vb.gui.adjust_v) / max * 100));
 
     if (max == 0) {
         g_string_append(status, " All");