mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-22 11:04:51 -04:00
27 lines
697 B
C
27 lines
697 B
C
$NetBSD: patch-main.c,v 1.1 2016/07/27 20:37:27 kamil Exp $
|
|
|
|
Fix K&R code.
|
|
|
|
--- main.c.orig 2016-07-27 20:12:55.347835407 +0000
|
|
+++ main.c
|
|
@@ -60,6 +60,7 @@ char main_RCSid[] = "Revision: 1.11 $";
|
|
#include "agm.h"
|
|
/* following just for getrusage () */
|
|
#include <unistd.h>
|
|
+#include <stdlib.h>
|
|
|
|
int listdict = FALSE; /* just output the final word dictionary */
|
|
int hardmin = FALSE; /* hard minimums on words */
|
|
@@ -86,9 +87,8 @@ struct wnode *lstart = NULL, *lend = NUL
|
|
|
|
int pct= 0, lastpct = -1; /* percentage complete counters */
|
|
|
|
-main (argc, argv)
|
|
- int argc;
|
|
- char **argv;
|
|
+int
|
|
+main (int argc, char **argv)
|
|
{
|
|
int wordno; /* loops along argument list */
|
|
void matchwords ();
|