from scratch, rename; add Berkeley specific copyright notice
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 16 May 1990 03:23:24 +0000 (19:23 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 16 May 1990 03:23:24 +0000 (19:23 -0800)
SCCS-vsn: lib/liby/yyerror.c 5.2
SCCS-vsn: lib/liby/main.c 5.2

usr/src/lib/liby/main.c
usr/src/lib/liby/yyerror.c

index 708a6a3..c374fb0 100644 (file)
@@ -1,15 +1,18 @@
-/*
- * Copyright (c) 1985 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     5.1 (Berkeley) %G%";
-#endif not lint
+static char sccsid[] = "@(#)main.c     5.2 (Berkeley) %G%";
+#endif /* not lint */
 
 main()
 {
 
 main()
 {
+       extern yyparse();
 
 
-       yyparse();
+       (void)yyparse();
+       return(0);
 }
 }
index eb5780a..1132d22 100644 (file)
@@ -1,18 +1,19 @@
-/*
- * Copyright (c) 1985 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)yyerror.c  5.1 (Berkeley) %G%";
-#endif not lint
+static char sccsid[] = "@(#)yyerror.c  5.2 (Berkeley) %G%";
+#endif /* not lint */
 
 
-# include <stdio.h>
+#include <stdio.h>
 
 
-yyerror(s)
-       char *s;
+yyerror(msg)
+char *msg;
 {
 {
-
-       fprintf(stderr, "%s\n", s);
+       (void)fprintf(stderr, "%s\n", msg);
+       return(0);
 }
 }