diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-03-26 09:35:23 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-03-26 09:35:23 +0000 |
commit | 1143809c50c08624063d8a563fa186a62c7a4de4 (patch) | |
tree | e5090a54db210fdcf405e26b483693a873fd4a15 /usr.sbin/ypserv/ypxfr | |
parent | 86c6742ecdd648129b8e9b6027219d35d4feed23 (diff) |
o -Wall cleanup.
o fix usage.
o don't call ypdb_cloes() if db is never open.
maja@ pval@ ok.
Diffstat (limited to 'usr.sbin/ypserv/ypxfr')
-rw-r--r-- | usr.sbin/ypserv/ypxfr/ypxfr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/ypserv/ypxfr/ypxfr.c b/usr.sbin/ypserv/ypxfr/ypxfr.c index 6962080acb8..d19577c1e7b 100644 --- a/usr.sbin/ypserv/ypxfr/ypxfr.c +++ b/usr.sbin/ypserv/ypxfr/ypxfr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypxfr.c,v 1.26 2001/11/07 19:01:29 deraadt Exp $ */ +/* $OpenBSD: ypxfr.c,v 1.27 2002/03/26 09:35:22 fgsch Exp $ */ /* * Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se> @@ -32,7 +32,7 @@ */ #ifndef LINT -static char rcsid[] = "$OpenBSD: ypxfr.c,v 1.26 2001/11/07 19:01:29 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: ypxfr.c,v 1.27 2002/03/26 09:35:22 fgsch Exp $"; #endif #include <sys/types.h> @@ -428,6 +428,7 @@ char *argv[]; status = YPPUSH_SUCC; client = NULL; + db = NULL; yp_get_default_domain(&domain); @@ -477,8 +478,8 @@ char *argv[]; if (usage) { status = YPPUSH_BADARGS; - fprintf(stderr, "usage: %s %s %s\n", - "[-cf] [-d domain] [-h host] [-s domain]", + fprintf(stderr, "usage: %s " + "[-cf] [-d domain] [-h host] [-s domain] " "[-C tid prog ipadd port] mapname\n", __progname); } |