From 167c036e91fb24a62d627d16a2f3afa6d875c9e2 Mon Sep 17 00:00:00 2001 From: archie Date: Sun, 6 Dec 1998 22:58:23 +0000 Subject: Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). --- usr.bin/colldef/Makefile | 3 ++- usr.bin/colldef/parse.y | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'usr.bin/colldef') diff --git a/usr.bin/colldef/Makefile b/usr.bin/colldef/Makefile index 474bf7b..ccb5e98 100644 --- a/usr.bin/colldef/Makefile +++ b/usr.bin/colldef/Makefile @@ -1,7 +1,8 @@ -# $Id: Makefile,v 1.12 1998/05/04 20:09:02 bde Exp $ +# $Id: Makefile,v 1.13 1998/05/05 13:16:22 bde Exp $ PROG = colldef LFLAGS = -8 -i +CFLAGS += -Wall CFLAGS += -I. -I${.CURDIR}/../../lib/libc/locale -DCOLLATE_DEBUG SRCS = parse.y scan.l y.tab.h LDADD = -ll diff --git a/usr.bin/colldef/parse.y b/usr.bin/colldef/parse.y index e316e1c..cfc5642 100644 --- a/usr.bin/colldef/parse.y +++ b/usr.bin/colldef/parse.y @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: parse.y,v 1.9 1997/06/26 11:25:17 charnier Exp $ + * $Id: parse.y,v 1.10 1997/06/30 11:24:18 charnier Exp $ */ #include @@ -40,6 +40,8 @@ extern int line_no; extern FILE *yyin; void yyerror(char *fmt, ...); +int yyparse(void); +int yylex(void); static void usage __P((void)); char map_name[FILENAME_MAX] = "."; @@ -208,6 +210,7 @@ sec_sub_item : CHAR { } ; %% +int main(ac, av) char **av; { @@ -268,6 +271,7 @@ void yyerror(char *fmt, ...) } #ifdef COLLATE_DEBUG +void collate_print_tables() { int i; -- cgit v1.1