summaryrefslogtreecommitdiffstats
path: root/usr.sbin/yp_mkdb/yp_mkdb.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-10-27 12:29:25 +0000
committercharnier <charnier@FreeBSD.org>1997-10-27 12:29:25 +0000
commitede47e9ab022135f97abb313d33b226ce6b5f722 (patch)
treef257138b915ee75a8d251523d0864dfc96f63d5f /usr.sbin/yp_mkdb/yp_mkdb.c
parent979da9c94af054c2d753e048bb94b87e6dbeeec1 (diff)
downloadFreeBSD-src-ede47e9ab022135f97abb313d33b226ce6b5f722.zip
FreeBSD-src-ede47e9ab022135f97abb313d33b226ce6b5f722.tar.gz
Remove `progname'.
Diffstat (limited to 'usr.sbin/yp_mkdb/yp_mkdb.c')
-rw-r--r--usr.sbin/yp_mkdb/yp_mkdb.c40
1 files changed, 18 insertions, 22 deletions
diff --git a/usr.sbin/yp_mkdb/yp_mkdb.c b/usr.sbin/yp_mkdb/yp_mkdb.c
index 0ce8b58..aea610f 100644
--- a/usr.sbin/yp_mkdb/yp_mkdb.c
+++ b/usr.sbin/yp_mkdb/yp_mkdb.c
@@ -28,44 +28,40 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $Id: yp_mkdb.c,v 1.6 1997/02/22 16:14:50 peter Exp $
*/
-#include <stdio.h>
-#include <string.h>
+#ifndef lint
+static const char rcsid[] =
+ "$Id$";
+#endif /* not lint */
+
+#include <err.h>
#include <fcntl.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <limits.h>
+#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
-#include <errno.h>
+#include <string.h>
#include <time.h>
-#include <err.h>
+#include <unistd.h>
#include <rpc/rpc.h>
#include <rpcsvc/yp.h>
+#include <sys/param.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include "yp_extern.h"
#include "ypxfr_extern.h"
-#ifndef lint
-static const char rcsid[] = "$Id: yp_mkdb.c,v 1.6 1997/02/22 16:14:50 peter Exp $";
-#endif
-
char *yp_dir = ""; /* No particular default needed. */
-char *progname = "yp_mkdb";
int _rpcpmstart = 0;
int debug = 1;
static void usage()
{
- fprintf(stderr, "usage: %s -c\n", progname);
- fprintf(stderr, "usage: %s -u dbname\n", progname);
- fprintf(stderr, "usage: %s [-c] [-b] [-s] [-i inputfile] \
-[-o outputfile]\n", progname);
- fprintf(stderr, " [-d domainname ] [-m mastername] \
-inputfile dbname\n");
+ fprintf(stderr, "%s\n%s\n%s\n%s\n",
+ "usage: yp_mkdb -c",
+ " yp_mkdb -u dbname",
+ " yp_mkdb [-c] [-b] [-s] [-i inputfile] [-o outputfile]",
+ " [-d domainname ] [-m mastername] inputfile dbname");
exit(1);
}
@@ -99,7 +95,7 @@ static void unwind(map)
return;
}
-main (argc, argv)
+int main (argc, argv)
int argc;
char *argv[];
{
OpenPOWER on IntegriCloud