diff options
author | ed <ed@FreeBSD.org> | 2009-02-28 16:16:37 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-02-28 16:16:37 +0000 |
commit | 1c22aa10afa2d0933dda4f1fd7bbae1cc4429bf6 (patch) | |
tree | 96fe5e02aaa20a06e1b52248af896fc5f0e49a35 /usr.bin/newkey/update.c | |
parent | 906af9736aefe86883b3e7ea6d666fc14cdbf364 (diff) | |
download | FreeBSD-src-1c22aa10afa2d0933dda4f1fd7bbae1cc4429bf6.zip FreeBSD-src-1c22aa10afa2d0933dda4f1fd7bbae1cc4429bf6.tar.gz |
Fix compilation of newkey(8) with WITHOUT_NIS=yes.
Increasing WARNS seems to have broken compilation of this utility.
Instead of lowering WARNS, just fix to code to compile properly.
Submitted by: <bf2006a yahoo com>
Tested by: bms
Diffstat (limited to 'usr.bin/newkey/update.c')
-rw-r--r-- | usr.bin/newkey/update.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/newkey/update.c b/usr.bin/newkey/update.c index 533568f..11a1db9 100644 --- a/usr.bin/newkey/update.c +++ b/usr.bin/newkey/update.c @@ -70,11 +70,7 @@ __FBSDID("$FreeBSD$"); static char SHELL[] = "/bin/sh"; static char YPDBPATH[]="/var/yp"; /* This is defined but not used! */ static char UPDATEFILE[] = "updaters"; -#else -static char PKFILE[] = "/etc/publickey"; -#endif /* YP */ -#ifdef YP static int _openchild(char *, FILE **, FILE **); static char *basename(char *path); @@ -238,8 +234,8 @@ static int match(char *, char *); * the local file and then shuts up. */ int -localupdate(char *name, char *filename, u_int op, u_int keylen, - char *key, u_int datalen, char *data) +localupdate(char *name, char *filename, u_int op, u_int keylen __unused, + char *key, u_int datalen __unused, char *data) { char line[256]; FILE *rf; |