units WARNS6 cleanup

看板DFBSD_submit作者時間21年前 (2005/01/17 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
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 07:17:04 -0000 @@ -71,6 +71,26 @@ int prefixcount; +int addsubunit(char *[], char *); +int addunit(struct unittype *, char *, int); +void cancelunit(struct unittype *); +int compare(const void *, const void *); +int compareproducts(char **, char **); +int compareunits(struct unittype *, struct unittype *); +int completereduce(struct unittype *); +char *dupstr(const char *); +void initializeunit(struct unittype *); +char *lookupunit(const char *); +void readunits(const char *); +int reduceproduct(struct unittype *, int); +int reduceunit(struct unittype *); +void showanswer(struct unittype *, struct unittype *); +void showunit(struct unittype *); +void sortunit(struct unittype *); +void usage(void); +void zeroerror(void); + + char * dupstr(const char *str) {
文章代碼(AID): #11wsdy00 (DFBSD_submit)
文章代碼(AID): #11wsdy00 (DFBSD_submit)