pkgsrc/lang/p2c/patches/patch-decl_c
dholland f25bee23a2 Assorted fixes:
- 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
2011-12-18 16:54:08 +00:00

33 lines
1.3 KiB
Text

$NetBSD: patch-decl_c,v 1.1 2011/12/18 16:54:09 dholland Exp $
- add missing casts to make printf calls correct
--- decl.c~ 1991-04-24 20:30:43.000000000 +0000
+++ decl.c
@@ -816,7 +816,7 @@ void handle_nameof()
sl2->value = sl->value;
if (debug > 0)
fprintf(outf, "symbol %s gets \"%s\" -> \"%s\"\n",
- sp->name, sl2->s, sl2->value);
+ sp->name, sl2->s, (char *)sl2->value);
}
strlist_empty(&nameoflist);
}
@@ -973,7 +973,7 @@ enum meaningkind kind, namekind;
sl = strlist_cifind(sym->symbolnames, curctx->sym->name);
if (sl) {
if (debug > 2)
- fprintf(outf, "found \"%s\"\n", sl->value);
+ fprintf(outf, "found \"%s\"\n", (char *)sl->value);
name = (char *)sl->value;
wasaliased = 1;
}
@@ -984,7 +984,7 @@ enum meaningkind kind, namekind;
sl = strlist_find(sym->symbolnames, "");
if (sl) {
if (debug > 2)
- fprintf(outf, "found \"%s\"\n", sl->value);
+ fprintf(outf, "found \"%s\"\n", (char *)sl->value);
name = (char *)sl->value;
wasaliased = 1;
}