units WARNS6 cleanup

Larry Lansing lansil at fuzzynerd.com
Mon Jan 17 08:16:09 PST 2005


On Mon, Jan 17, 2005 at 09:28:53AM +0100, Simon 'corecode' Schubert wrote:
> 
> static?

Whoops.

--
Larry Lansing
Index: Makefile
===================================================================
RCS file: /home/dcvs/src/usr.bin/units/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	17 Jun 2003 04:29:33 -0000	1.2
+++ Makefile	17 Jan 2005 07:09:26 -0000
@@ -2,6 +2,7 @@
 # $DragonFly: src/usr.bin/units/Makefile,v 1.2 2003/06/17 04:29:33 dillon Exp $
 
 PROG=	units
+WARNS?=	6
 FILES=	units.lib
 FILESDIR=	${SHAREDIR}/misc
 
Index: units.c
===================================================================
RCS file: /home/dcvs/src/usr.bin/units/units.c,v
retrieving revision 1.2
diff -u -r1.2 units.c
--- units.c	17 Jun 2003 04:29:33 -0000	1.2
+++ units.c	17 Jan 2005 16:12:11 -0000
@@ -71,6 +71,26 @@
 int prefixcount;
 
 
+static int	 addsubunit(char *[], char *);
+static int	 addunit(struct unittype *, char *, int);
+static void	 cancelunit(struct unittype *);
+static int	 compare(const void *, const void *);
+static int	 compareproducts(char **, char **);
+static int	 compareunits(struct unittype *, struct unittype *);
+static int	 completereduce(struct unittype *);
+static char	*dupstr(const char *);
+static void	 initializeunit(struct unittype *);
+static char	*lookupunit(const char *);
+static void	 readunits(const char *);
+static int	 reduceproduct(struct unittype *, int);
+static int	 reduceunit(struct unittype *);
+static void	 showanswer(struct unittype *, struct unittype *);
+static void	 showunit(struct unittype *);
+static void	 sortunit(struct unittype *);
+static void	 usage(void);
+static void	 zeroerror(void);
+
+
 char *
 dupstr(const char *str)
 {




More information about the Submit mailing list