From 61ad98e88894ea4a48dac974944d49e92ae2618b Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Tue, 21 Jan 2014 23:04:55 +0100
Subject: [PATCH] Removed libm dependency.

---
 config.mk  | 2 +-
 src/main.c | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

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 <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");
-- 
2.20.1