summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/mknetid/mknetid.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-13 23:10:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-13 23:10:47 +0000
commite763dcb5beb1b723d22070b161fdf62a7e5af54a (patch)
tree8c8b64339041021f5950400613cb5c12f2f02e6f /usr.sbin/ypserv/mknetid/mknetid.c
parent507308c75500c3c52faff25e88191aa30d14e9c8 (diff)
some more KNF and -Wall
Diffstat (limited to 'usr.sbin/ypserv/mknetid/mknetid.c')
-rw-r--r--usr.sbin/ypserv/mknetid/mknetid.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/ypserv/mknetid/mknetid.c b/usr.sbin/ypserv/mknetid/mknetid.c
index 1c2352819ea..f20422cdbc6 100644
--- a/usr.sbin/ypserv/mknetid/mknetid.c
+++ b/usr.sbin/ypserv/mknetid/mknetid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mknetid.c,v 1.6 2001/01/11 23:37:22 deraadt Exp $ */
+/* $OpenBSD: mknetid.c,v 1.7 2002/02/13 23:10:46 deraadt Exp $ */
/*
* Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: mknetid.c,v 1.6 2001/01/11 23:37:22 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mknetid.c,v 1.7 2002/02/13 23:10:46 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -43,8 +43,11 @@ static char rcsid[] = "$OpenBSD: mknetid.c,v 1.6 2001/01/11 23:37:22 deraadt Exp
#include <stdlib.h>
#include <pwd.h>
#include <grp.h>
+#include <err.h>
#include <netdb.h>
+#include <rpcsvc/ypclnt.h>
+
struct user {
char *usr_name; /* user name */
int usr_uid; /* user uid */
@@ -414,7 +417,7 @@ print_hosts(pfile, fname, domain)
{
char line[1024];
int line_no = 0;
- int len, colon;
+ int len;
char *p, *k, *u;
while (read_line(pfile, line, sizeof(line))) {
@@ -469,7 +472,7 @@ char *fname;
{
char line[1024];
int line_no = 0;
- int len, colon;
+ int len;
char *p, *k, *u;
while (read_line(mfile, line, sizeof(line))) {