- explain why we need post-extract chmods - sort PLIST - add patch comments - clean up some pkglint - fix a symbol name conflict with logf (from math.h + a gcc builtin) - fix some other bugs/issues found by gcc - add standard headers - remove some bogus BSD/System V include probing - probably fix gcc 4.5 build (not fully tested) - bump PKGREVISION
38 lines
1 KiB
Text
38 lines
1 KiB
Text
$NetBSD: patch-makeproto_c,v 1.1 2011/12/18 16:54:09 dholland Exp $
|
|
|
|
- use standard headers
|
|
- remove outdated and bogus system type probing
|
|
- fix wrong printf call
|
|
|
|
--- makeproto.c~ 1991-04-24 20:30:50.000000000 +0000
|
|
+++ makeproto.c
|
|
@@ -9,18 +9,8 @@
|
|
#include <stdio.h>
|
|
#include <ctype.h>
|
|
#include <time.h>
|
|
-
|
|
-#ifdef FILE /* a #define in BSD, a typedef in SYSV (hp-ux, at least) */
|
|
-# ifndef BSD
|
|
-# define BSD 1
|
|
-# endif
|
|
-#endif
|
|
-
|
|
-#ifdef BSD
|
|
-# include <strings.h>
|
|
-#else
|
|
-# include <string.h>
|
|
-#endif
|
|
+#include <string.h>
|
|
+#include <stdlib.h>
|
|
|
|
|
|
|
|
@@ -418,7 +408,7 @@ char **argv;
|
|
argdecls[i] + strlen(warntypes[j].bad));
|
|
strcpy(argdecls[i], temp);
|
|
fprintf(stderr, "Warning: Argument %s of %s has type %s\n",
|
|
- argnames[i], fname, warntypes[j]);
|
|
+ argnames[i], fname, warntypes[j].bad);
|
|
}
|
|
}
|
|
}
|