2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-01 06:45:27 +00:00

Delete unused automatic variables; don't put copyright string in ifdef lint

This commit is contained in:
Ted Lemon
1996-06-04 19:21:16 +00:00
parent fde59885f3
commit 955d158bd0
2 changed files with 4 additions and 20 deletions

12
dhcpd.c
View File

@@ -40,12 +40,10 @@
* Enterprises, see ``http://www.vix.com''. * Enterprises, see ``http://www.vix.com''.
*/ */
#ifndef lint
static char copyright[] = static char copyright[] =
"Copyright 1995, 1996 The Internet Software Consortium."; "Copyright 1995, 1996 The Internet Software Consortium.";
static char arr [] = "All rights reserved."; static char arr [] = "All rights reserved.";
static char message [] = "Internet Software Consortium DHCPD $Name: $"; static char message [] = "Internet Software Consortium DHCPD $Name: $";
#endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -70,18 +68,12 @@ int main (argc, argv, envp)
int argc; int argc;
char **argv, **envp; char **argv, **envp;
{ {
struct in_addr addr;
int port = 0;
int i; int i;
struct sockaddr_in name; struct sockaddr_in name;
u_int32_t *addrlist = (u_int32_t *)0;
int addrcount = 0;
struct tree *addrtree = (struct tree *)0;
struct servent *ent; struct servent *ent;
int sock; #ifndef DEBUG
int pid; int pid;
int result; #endif
int flag;
#ifdef SYSLOG_4_2 #ifdef SYSLOG_4_2
openlog ("dhcpd", LOG_NDELAY); openlog ("dhcpd", LOG_NDELAY);

View File

@@ -40,12 +40,10 @@
* Enterprises, see ``http://www.vix.com''. * Enterprises, see ``http://www.vix.com''.
*/ */
#ifndef lint
static char copyright[] = static char copyright[] =
"Copyright 1995, 1996 The Internet Software Consortium."; "Copyright 1995, 1996 The Internet Software Consortium.";
static char arr [] = "All rights reserved."; static char arr [] = "All rights reserved.";
static char message [] = "Internet Software Consortium DHCPD $Name: $"; static char message [] = "Internet Software Consortium DHCPD $Name: $";
#endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -70,18 +68,12 @@ int main (argc, argv, envp)
int argc; int argc;
char **argv, **envp; char **argv, **envp;
{ {
struct in_addr addr;
int port = 0;
int i; int i;
struct sockaddr_in name; struct sockaddr_in name;
u_int32_t *addrlist = (u_int32_t *)0;
int addrcount = 0;
struct tree *addrtree = (struct tree *)0;
struct servent *ent; struct servent *ent;
int sock; #ifndef DEBUG
int pid; int pid;
int result; #endif
int flag;
#ifdef SYSLOG_4_2 #ifdef SYSLOG_4_2
openlog ("dhcpd", LOG_NDELAY); openlog ("dhcpd", LOG_NDELAY);