--- embedaddon/dhcp/server/dhcpd.c 2012/02/21 22:30:18 1.1 +++ embedaddon/dhcp/server/dhcpd.c 2012/10/09 09:06:55 1.1.1.1 @@ -3,7 +3,7 @@ DHCP Server Daemon. */ /* - * Copyright (c) 2004-2011 by Internet Systems Consortium, Inc. ("ISC") + * Copyright (c) 2004-2012 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996-2003 by Internet Software Consortium * * Permission to use, copy, modify, and distribute this software for any @@ -33,7 +33,7 @@ */ static const char copyright[] = -"Copyright 2004-2011 Internet Systems Consortium."; +"Copyright 2004-2012 Internet Systems Consortium."; static const char arr [] = "All rights reserved."; static const char message [] = "Internet Systems Consortium DHCP Server"; static const char url [] = @@ -58,7 +58,9 @@ static const char url [] = # undef group #endif /* PARANOIA */ +#ifndef UNIT_TEST static void usage(void); +#endif struct iaddr server_identifier; int server_identifier_matched; @@ -1182,7 +1184,7 @@ void postdb_startup (void) } /* Print usage message. */ - +#ifndef UNIT_TEST static void usage(void) { log_info("%s %s", message, PACKAGE_VERSION); @@ -1206,6 +1208,7 @@ usage(void) { " [-pf pid-file] [--no-pid] [-s server]\n" " [if0 [...ifN]]"); } +#endif void lease_pinged (from, packet, length) struct iaddr from;