From: Daniel Carl Date: Tue, 21 Jan 2014 22:04:55 +0000 (+0100) Subject: Removed libm dependency. X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=61ad98e88894ea4a48dac974944d49e92ae2618b;p=vimb.git Removed libm dependency. --- diff --git a/config.mk b/config.mk index ab39beb..430a8a5 100644 --- 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)) diff --git a/src/main.c b/src/main.c index b8edaa7..0e666f7 100644 --- a/src/main.c +++ b/src/main.c @@ -19,7 +19,6 @@ #include "config.h" #include -#include #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");