mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
Add prototypes and turn on WARNS=?2.
This commit is contained in:
parent
7ce87f1205
commit
5386636d3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78698
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= units
|
||||
WARNS?= 2
|
||||
|
||||
beforeinstall:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user