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