diff --git a/pxe/proxydhcp.c b/pxe/proxydhcp.c index 93f127d03573ac52b66d3b27dfd015b64e7993e6..88f1de90e39b1141c3a1a9584d0bb00a52884db3 100644 --- a/pxe/proxydhcp.c +++ b/pxe/proxydhcp.c @@ -304,7 +304,6 @@ int findiface(struct sockaddr_in *client) { for (i=0;iifr_addr.sa_len) + @@ -340,7 +339,7 @@ main(int argc, char *argv[]) struct sockaddr_in server, client; struct in_addr sip; int clientlength; - int i, argn=1; + int argn=1; char *p, bootprog[256], ifname[IFNAMSIZ+1]; char arguments[256]; @@ -442,8 +441,7 @@ main(int argc, char *argv[]) struct in_addr ina; } cm; #endif - struct config *configp; - + clientlength = sizeof(client); #ifdef USE_RECVMSG #ifdef IP_RECVDSTADDR diff --git a/pxe/proxydhcp_mysql.c b/pxe/proxydhcp_mysql.c index 3b1a34ac0205426affae0db0a90b6fd9127fb358..42c4cbc85cf294947412c87b2a610b71a28875dd 100644 --- a/pxe/proxydhcp_mysql.c +++ b/pxe/proxydhcp_mysql.c @@ -9,14 +9,14 @@ #include #include #include +#include +#include #ifdef USE_MYSQL_DB #include static char dbname[] = TBDBNAME; -static MYSQL db; static int parse_pathspec(char *path, struct in_addr *sip, char **filename); -static int clear_next_pxeboot(char *node); #include