diff options
author | peter <peter@FreeBSD.org> | 1996-11-15 14:13:51 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-11-15 14:13:51 +0000 |
commit | 6926a0a5d18e3d56505b05c892e674fae254989e (patch) | |
tree | a620fa6f14ccdbb8de17b087bd0ba22eca606b81 /usr.sbin/rpc.yppasswdd | |
parent | f4d89c626ac3b19bafa5776436597a3b54b7b68a (diff) | |
download | FreeBSD-src-6926a0a5d18e3d56505b05c892e674fae254989e.zip FreeBSD-src-6926a0a5d18e3d56505b05c892e674fae254989e.tar.gz |
Fix harmless bugs found while hunting for chpass nis failure
Diffstat (limited to 'usr.sbin/rpc.yppasswdd')
-rw-r--r-- | usr.sbin/rpc.yppasswdd/yppasswdd_main.c | 6 | ||||
-rw-r--r-- | usr.sbin/rpc.yppasswdd/yppasswdd_server.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/rpc.yppasswdd/yppasswdd_main.c b/usr.sbin/rpc.yppasswdd/yppasswdd_main.c index fd38a4c..817c538 100644 --- a/usr.sbin/rpc.yppasswdd/yppasswdd_main.c +++ b/usr.sbin/rpc.yppasswdd/yppasswdd_main.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: yppasswdd_main.c,v 1.5 1996/10/22 14:58:10 wpaul Exp $ + * $Id: yppasswdd_main.c,v 1.6 1996/10/23 15:42:37 wpaul Exp $ */ #include "yppasswd.h" @@ -72,7 +72,7 @@ struct dom_binding {}; #define _RPCSVC_CLOSEDOWN 120 #ifndef lint -static const char rcsid[] = "$Id: yppasswdd_main.c,v 1.5 1996/10/22 14:58:10 wpaul Exp $"; +static const char rcsid[] = "$Id: yppasswdd_main.c,v 1.6 1996/10/23 15:42:37 wpaul Exp $"; #endif /* not lint */ int _rpcpmstart = 0; /* Started by a port monitor ? */ static int _rpcfdtype; @@ -194,6 +194,7 @@ static void usage() exit(1); } +int main(argc, argv) int argc; char *argv[]; @@ -204,7 +205,6 @@ main(argc, argv) struct sockaddr_in saddr; int asize = sizeof (saddr); int ch; - int rval; char *mastername; char myname[MAXHOSTNAMELEN + 2]; extern int errno; diff --git a/usr.sbin/rpc.yppasswdd/yppasswdd_server.c b/usr.sbin/rpc.yppasswdd/yppasswdd_server.c index 22320e7..2841eb7 100644 --- a/usr.sbin/rpc.yppasswdd/yppasswdd_server.c +++ b/usr.sbin/rpc.yppasswdd/yppasswdd_server.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: yppasswdd_server.c,v 1.6 1996/07/01 19:38:38 guido Exp $ + * $Id: yppasswdd_server.c,v 1.9 1996/10/23 21:46:17 wpaul Exp $ */ #include <stdio.h> @@ -61,7 +61,7 @@ struct dom_binding {}; #include "yppasswd_comm.h" #ifndef lint -static const char rcsid[] = "$Id: yppasswdd_server.c,v 1.6 1996/07/01 19:38:38 guido Exp $"; +static const char rcsid[] = "$Id: yppasswdd_server.c,v 1.9 1996/10/23 21:46:17 wpaul Exp $"; #endif /* not lint */ char *tempname; @@ -320,7 +320,7 @@ static int update_inplace(pw, domain) DBT data = { NULL, 0 }; char pwbuf[YPMAXRECORD]; char keybuf[20]; - int rval, i; + int i; char *maps[] = { "master.passwd.byname", "master.passwd.byuid", "passwd.byname", "passwd.byuid" }; |