Add prototypes and turn on WARNS=?2.

This commit is contained in:
David Malone 2001-06-24 12:23:54 +00:00
parent 7ce87f1205
commit 5386636d3e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78698
2 changed files with 19 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# $FreeBSD$
PROG= units
WARNS?= 2
beforeinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \

View File

@ -72,6 +72,24 @@ char NULLUNIT[] = "";
int unitcount;
int prefixcount;
char *dupstr(const char *str);
void readunits(const char *userfile);
void initializeunit(struct unittype * theunit);
int addsubunit(char *product[], char *toadd);
void showunit(struct unittype * theunit);
void zeroerror(void);
int addunit(struct unittype * theunit, char *toadd, int flip);
int compare(const void *item1, const void *item2);
void sortunit(struct unittype * theunit);
void cancelunit(struct unittype * theunit);
char *lookupunit(const char *unit);
int reduceproduct(struct unittype * theunit, int flip);
int reduceunit(struct unittype * theunit);
int compareproducts(char **one, char **two);
int compareunits(struct unittype * first, struct unittype * second);
int completereduce(struct unittype * unit);
void showanswer(struct unittype * have, struct unittype * want);
void usage(void);
char *
dupstr(const char *str)