From ae5e78612835ec7da0d804a13d46f2b7ed294105 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sun, 18 Apr 2004 00:30:34 +0000 Subject: dhcpd may be invoked without any interface given --- usr.sbin/dhcpd/dhcpd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/usr.sbin/dhcpd/dhcpd.c b/usr.sbin/dhcpd/dhcpd.c index 331c9e81abf..6574af82679 100644 --- a/usr.sbin/dhcpd/dhcpd.c +++ b/usr.sbin/dhcpd/dhcpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.c,v 1.12 2004/04/16 04:30:09 deraadt Exp $ */ +/* $OpenBSD: dhcpd.c,v 1.13 2004/04/18 00:30:33 henning Exp $ */ /* * Copyright (c) 2004 Henning Brauer @@ -108,9 +108,6 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - if (!argc) - usage(); - while (argc > 0) { struct interface_info *tmp = calloc(1, sizeof(*tmp)); if (!tmp) -- cgit v1.2.3