diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 21:32:54 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 21:32:54 +0000 |
commit | 8136379bed4a4ca0addb8a7e3ae5f04590eb85bc (patch) | |
tree | 0d533a2820e45a93b322a64f9ea7e7e24ae84d15 /usr.bin/tsort | |
parent | 4713a986f4be5ac311cf38a4c7205a7e1019fcc8 (diff) | |
download | FreeBSD-src-8136379bed4a4ca0addb8a7e3ae5f04590eb85bc.zip FreeBSD-src-8136379bed4a4ca0addb8a7e3ae5f04590eb85bc.tar.gz |
Warns cleanups. Add missing prototype.
Diffstat (limited to 'usr.bin/tsort')
-rw-r--r-- | usr.bin/tsort/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/tsort/tsort.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tsort/Makefile b/usr.bin/tsort/Makefile index e00f9ac..644dc90 100644 --- a/usr.bin/tsort/Makefile +++ b/usr.bin/tsort/Makefile @@ -1,5 +1,7 @@ +# $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/9/93 PROG= tsort +WARNS?= 2 .include <bsd.prog.mk> diff --git a/usr.bin/tsort/tsort.c b/usr.bin/tsort/tsort.c index 746ea4f..3cf148b 100644 --- a/usr.bin/tsort/tsort.c +++ b/usr.bin/tsort/tsort.c @@ -37,13 +37,13 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1989, 1993, 1994\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)tsort.c 8.3 (Berkeley) 5/4/95"; +static const char sccsid[] = "@(#)tsort.c 8.3 (Berkeley) 5/4/95"; #endif /* not lint */ #include <sys/types.h> @@ -108,6 +108,7 @@ int find_cycle __P((NODE *, NODE *, int, int)); NODE *get_node __P((char *)); void *grow_buf __P((void *, int)); void remove_node __P((NODE *)); +void clear_cycle __P((void)); void tsort __P((void)); void usage __P((void)); |