diff options
author | jmg <jmg@FreeBSD.org> | 1997-03-17 01:44:43 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 1997-03-17 01:44:43 +0000 |
commit | 5a9515e41823c0301caeed698dac85c7fb2517a4 (patch) | |
tree | 301daaac71c7f31812bbeb45295996b44e322d0f /gnu/usr.bin/patch/util.c | |
parent | 52336caffb6002438ca3d2ac83b080a13cb04317 (diff) | |
download | FreeBSD-src-5a9515e41823c0301caeed698dac85c7fb2517a4.zip FreeBSD-src-5a9515e41823c0301caeed698dac85c7fb2517a4.tar.gz |
fix compilation warnings in patch... (with slight modification)
also remove -Wall that I acidentally committed last time I was here...
Submitted-by: Philippe Charnier
Closes PR#2998
Diffstat (limited to 'gnu/usr.bin/patch/util.c')
-rw-r--r-- | gnu/usr.bin/patch/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/patch/util.c b/gnu/usr.bin/patch/util.c index 6c00880..6ab6ecf 100644 --- a/gnu/usr.bin/patch/util.c +++ b/gnu/usr.bin/patch/util.c @@ -169,7 +169,7 @@ Reg1 char *s; } else { t = rv; - while (*t++ = *s++); + while ((*t++ = *s++)); } return rv; } @@ -417,7 +417,7 @@ int assume_exists; #define try(f, a1, a2) (Sprintf(tmpbuf + pathlen, f, a1, a2), stat(tmpbuf, &filestat) == 0) if ( try("RCS/%s%s", filebase, RCSSUFFIX) - || try("RCS/%s" , filebase, 0) + || try("RCS/%s%s", filebase, "") || try( "%s%s", filebase, RCSSUFFIX) || try("SCCS/%s%s", SCCSPREFIX, filebase) || try( "%s%s", SCCSPREFIX, filebase)) |