[hackers] wmii: new tip (= 1762)

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Tue, 06 Feb 2007 23:20:03 +0100

changeset: 1762:350ce657c652
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Tue Feb 06 17:12:24 2007 -0500
files: bar.c config.mk geom.c
description:
Get rid of libm.

diff -r 4813e030768b -r 350ce657c652 bar.c
--- a/bar.c Tue Feb 06 17:03:07 2007 -0500
+++ b/bar.c Tue Feb 06 17:12:24 2007 -0500
@@ -100,7 +100,7 @@ draw_bar(WMScreen *s) {
                 }
                 if(tb)
                 for(b = largest; b != tb->smaller; b = b->smaller)
- b->brush.rect.width = floor(b->brush.rect.width * shrink);
+ b->brush.rect.width = (int)(b->brush.rect.width * shrink);
                 width += tw * shrink;
                 tb = nil;
         }
diff -r 4813e030768b -r 350ce657c652 config.mk
--- a/config.mk Tue Feb 06 17:03:07 2007 -0500
+++ b/config.mk Tue Feb 06 17:12:24 2007 -0500
@@ -14,7 +14,7 @@ X11LIB = /usr/X11R6/lib
 
 # includes and libs
 INCS = -I. -I${PREFIX}/include -I/usr/include -I${X11INC}
-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -L${PREFIX}/lib -lixp -lm
+LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -L${PREFIX}/lib -lixp
 
 # flags
 #CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
diff -r 4813e030768b -r 350ce657c652 geom.c
--- a/geom.c Tue Feb 06 17:03:07 2007 -0500
+++ b/geom.c Tue Feb 06 17:12:24 2007 -0500
@@ -2,7 +2,6 @@
  * See LICENSE file for license details.
  */
 #include "wmii.h"
-#include <math.h>
 
 Bool
 ispointinrect(int x, int y, XRectangle * r) {
Received on Tue Feb 06 2007 - 23:20:03 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:56 UTC