summaryrefslogtreecommitdiffstats
path: root/usr.bin/colldef
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-06 22:58:23 +0000
committerarchie <archie@FreeBSD.org>1998-12-06 22:58:23 +0000
commit167c036e91fb24a62d627d16a2f3afa6d875c9e2 (patch)
treee40a696092a51458b052ff258b3700d51fc2ca09 /usr.bin/colldef
parent3f56407712318be6faa0b98ad8db4b5a83ef4c93 (diff)
downloadFreeBSD-src-167c036e91fb24a62d627d16a2f3afa6d875c9e2.zip
FreeBSD-src-167c036e91fb24a62d627d16a2f3afa6d875c9e2.tar.gz
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
Diffstat (limited to 'usr.bin/colldef')
-rw-r--r--usr.bin/colldef/Makefile3
-rw-r--r--usr.bin/colldef/parse.y6
2 files changed, 7 insertions, 2 deletions
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 <err.h>
@@ -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;
OpenPOWER on IntegriCloud