[PATCH:xpr] Remove unneeded uses of <math.h> & -lm

Alan Coopersmith alan.coopersmith at oracle.com
Fri Nov 15 23:05:35 PST 2013


Can't see why they were ever needed.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 Makefile.am |    2 +-
 x2pmp.c     |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index c96f863..8b75b07 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,7 +22,7 @@
 bin_PROGRAMS = xpr
 
 AM_CFLAGS = $(CWARNFLAGS) $(XPR_CFLAGS) -DNOINLINE
-xpr_LDADD = $(XPR_LIBS) -lm
+xpr_LDADD = $(XPR_LIBS)
 
 xpr_SOURCES =	\
         lncmd.h \
diff --git a/x2pmp.c b/x2pmp.c
index ce1627b..4199d2f 100644
--- a/x2pmp.c
+++ b/x2pmp.c
@@ -6,7 +6,6 @@
  * IBM 3812 PagePrinter.
  */
 #include <stdio.h>
-#include <math.h>
 #include <X11/Xlib.h>
 #include <X11/XWDFile.h>
 #include <X11/Xfuncs.h>
-- 
1.7.9.2



More information about the xorg-devel mailing list