[dhcp-agent-commits] dhcp-agent/src dhcp-server-control.c,1.2,1.3
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2003-07-08 07:05:11
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv18457/src Modified Files: dhcp-server-control.c Log Message: added destroy function for dhcp-server-control.c Index: dhcp-server-control.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-server-control.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** dhcp-server-control.c 6 Jul 2003 05:37:44 -0000 1.2 --- dhcp-server-control.c 8 Jul 2003 07:05:07 -0000 1.3 *************** *** 40,44 **** dhcp_server_control = xcalloc(sizeof(dhcp_server_control_t)); ! dhcp_server_control->interface_name = xstrdup(interface); /* read configuration information. */ --- 40,44 ---- dhcp_server_control = xcalloc(sizeof(dhcp_server_control_t)); ! dhcp_server_control->interface = xstrdup(interface); /* read configuration information. */ *************** *** 78,84 **** } ! void dhcp_server_control_destroy(dhcp_server_control_t *dhcp_server_control) { ! INFO_MESSAGE("not implemented yet."); return; } --- 78,94 ---- } ! void dhcp_server_control_destroy(dhcp_server_control_t *sc) { ! if(sc->interface) ! xfree(sc->interface); ! ! if(sc->server_conf) ! server_conf_destroy(sc->server_conf); ! ! if(sc->rawnet) ! rawnet_destroy(sc->rawnet); ! ! xfree(sc); ! return; } |