]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix unused macros and extern
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 29 Jun 2017 01:35:50 +0000 (21:35 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 29 Jun 2017 01:35:50 +0000 (21:35 -0400)
src/modules/proto_dhcpv4/dhcpclient.c
src/modules/proto_dhcpv4/rlm_dhcpv4.c

index 029ec5775be2d55f16dd9c52eebc3a80fb008d9c..1e530bfb44d6c2883ffb3cefb875c13e8b317445 100644 (file)
@@ -54,8 +54,6 @@ static float timeout = 5.0;
 static struct timeval tv_timeout;
 
 static int sockfd;
-#define ETH_ADDR_LEN   6
-
 #ifdef HAVE_LIBPCAP
 static fr_pcap_t       *pcap;
 #endif
@@ -68,13 +66,8 @@ static struct sockaddr_ll ll;        /* Socket address structure */
 #endif
 
 static bool raw_mode = false;
-
 static bool reply_expected = true;
 
-#define DHCP_CHADDR_LEN        (16)
-#define DHCP_SNAME_LEN (64)
-#define DHCP_FILE_LEN  (128)
-
 static char const *dhcpclient_version = RADIUSD_VERSION_STRING_BUILD("dhcpclient");
 
 /* structure to keep track of offered IP addresses */
index eddc0c6b8d690366b4d91f4aca48b32f4486970a..da1917c97d5b7d30bbdecdd7950275e7ed796163 100644 (file)
@@ -221,7 +221,7 @@ static int dhcp_load(void)
  *     The server will then take care of ensuring that the module
  *     is single-threaded.
  */
-extern rad_module_t rlm_dhcp;
+extern rad_module_t rlm_dhcpv4;
 rad_module_t rlm_dhcpv4 = {
        .magic          = RLM_MODULE_INIT,
        .name           = "dhcpv4",