pkgsrc/games/netmaj/patches/patch-an
2013-02-26 10:29:34 +00:00

24 lines
722 B
Text

$NetBSD: patch-an,v 1.2 2013/02/26 10:29:34 joerg Exp $
Fix obvious bug detected by gcc.
--- pf.c.orig 1996-07-31 08:06:10.000000000 +0000
+++ pf.c
@@ -66,7 +66,7 @@ typedef struct {
#define yakus (((pf_global_t *)(gp->ext[0]))->_yakus)
#define pf_top (((pf_global_t *)(gp->ext[0]))->_pf_top)
-pf_init(gp,file,prog) global_t *gp; char *file; char *prog; {
+void pf_init(global_t *gp, char *file, char *prog) {
FILE *pf; /* personal file */
char buf[100];
char buf2[100];
@@ -94,7 +94,7 @@ pf_init(gp,file,prog) global_t *gp; char
}
if (!pf) {
strcpy(personal_file,prog);
- if (p=rindex(personal_file,"/")) {
+ if (p=rindex(personal_file,'/')) {
p[1] = 0;
} else {
personal_file[0] = 0;