mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 05:47:45 +00:00
Delete unused automatic variables
This commit is contained in:
parent
5c324ed20d
commit
eebea44806
@ -72,17 +72,8 @@ int main (argc, argv, envp)
|
||||
char **argv, **envp;
|
||||
{
|
||||
struct in_addr addr;
|
||||
int port = 0;
|
||||
int i;
|
||||
struct sockaddr_in name;
|
||||
u_int32_t *addrlist = (u_int32_t *)0;
|
||||
int addrcount = 0;
|
||||
struct tree *addrtree = (struct tree *)0;
|
||||
struct servent *ent;
|
||||
int sock;
|
||||
int pid;
|
||||
int result;
|
||||
int flag;
|
||||
struct interface_info *interface;
|
||||
|
||||
#ifdef SYSLOG_4_2
|
||||
|
@ -87,7 +87,6 @@ static int get_token (cfile)
|
||||
FILE *cfile;
|
||||
{
|
||||
int c;
|
||||
int i;
|
||||
int ttok;
|
||||
#ifdef DEBUG_TOKENS
|
||||
static char tb [2];
|
||||
|
@ -87,7 +87,6 @@ static int get_token (cfile)
|
||||
FILE *cfile;
|
||||
{
|
||||
int c;
|
||||
int i;
|
||||
int ttok;
|
||||
#ifdef DEBUG_TOKENS
|
||||
static char tb [2];
|
||||
|
@ -683,7 +683,6 @@ void parse_hardware_decl (cfile, bc, decl)
|
||||
jbp_decl (bc);
|
||||
struct host_decl *decl;
|
||||
{
|
||||
char *val;
|
||||
int token;
|
||||
struct hardware hw;
|
||||
|
||||
@ -1266,7 +1265,6 @@ TIME parse_date (cfile, bc)
|
||||
FILE *cfile;
|
||||
jbp_decl (bc);
|
||||
{
|
||||
TIME t;
|
||||
struct tm tm;
|
||||
char *val;
|
||||
int token;
|
||||
|
@ -72,17 +72,8 @@ int main (argc, argv, envp)
|
||||
char **argv, **envp;
|
||||
{
|
||||
struct in_addr addr;
|
||||
int port = 0;
|
||||
int i;
|
||||
struct sockaddr_in name;
|
||||
u_int32_t *addrlist = (u_int32_t *)0;
|
||||
int addrcount = 0;
|
||||
struct tree *addrtree = (struct tree *)0;
|
||||
struct servent *ent;
|
||||
int sock;
|
||||
int pid;
|
||||
int result;
|
||||
int flag;
|
||||
struct interface_info *interface;
|
||||
|
||||
#ifdef SYSLOG_4_2
|
||||
|
1
dhcp.c
1
dhcp.c
@ -149,7 +149,6 @@ void dhcprequest (packet)
|
||||
struct lease *lease;
|
||||
struct iaddr cip;
|
||||
struct subnet *subnet;
|
||||
struct lease *ip_lease;
|
||||
|
||||
if (packet -> options [DHO_DHCP_REQUESTED_ADDRESS].len) {
|
||||
cip.len = 4;
|
||||
|
@ -683,7 +683,6 @@ void parse_hardware_decl (cfile, bc, decl)
|
||||
jbp_decl (bc);
|
||||
struct host_decl *decl;
|
||||
{
|
||||
char *val;
|
||||
int token;
|
||||
struct hardware hw;
|
||||
|
||||
@ -1266,7 +1265,6 @@ TIME parse_date (cfile, bc)
|
||||
FILE *cfile;
|
||||
jbp_decl (bc);
|
||||
{
|
||||
TIME t;
|
||||
struct tm tm;
|
||||
char *val;
|
||||
int token;
|
||||
|
@ -149,7 +149,6 @@ void dhcprequest (packet)
|
||||
struct lease *lease;
|
||||
struct iaddr cip;
|
||||
struct subnet *subnet;
|
||||
struct lease *ip_lease;
|
||||
|
||||
if (packet -> options [DHO_DHCP_REQUESTED_ADDRESS].len) {
|
||||
cip.len = 4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user