mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
Don't pull in malloc.h; define _PATH_DHCPD_DB correctly
This commit is contained in:
3
dhcpd.h
3
dhcpd.h
@@ -49,7 +49,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <malloc.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@@ -157,7 +156,7 @@ typedef unsigned char option_mask [16];
|
|||||||
#define _PATH_DHCPD_DB "dhcpd.leases"
|
#define _PATH_DHCPD_DB "dhcpd.leases"
|
||||||
#else
|
#else
|
||||||
#define _PATH_DHCPD_CONF "/etc/dhcpd.conf"
|
#define _PATH_DHCPD_CONF "/etc/dhcpd.conf"
|
||||||
#define _PATH_DHCPD_CONF "/etc/dhcpd.leases"
|
#define _PATH_DHCPD_DB "/etc/dhcpd.leases"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -49,7 +49,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <malloc.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@@ -157,7 +156,7 @@ typedef unsigned char option_mask [16];
|
|||||||
#define _PATH_DHCPD_DB "dhcpd.leases"
|
#define _PATH_DHCPD_DB "dhcpd.leases"
|
||||||
#else
|
#else
|
||||||
#define _PATH_DHCPD_CONF "/etc/dhcpd.conf"
|
#define _PATH_DHCPD_CONF "/etc/dhcpd.conf"
|
||||||
#define _PATH_DHCPD_CONF "/etc/dhcpd.leases"
|
#define _PATH_DHCPD_DB "/etc/dhcpd.leases"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user