]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Rename define and add comment to info file
authorRoy Marples <roy@marples.name>
Mon, 16 Apr 2007 08:33:22 +0000 (08:33 +0000)
committerRoy Marples <roy@marples.name>
Mon, 16 Apr 2007 08:33:22 +0000 (08:33 +0000)
configure.c
configure.h

index a24fae7957c163fd38ec04441e9496bbf32c6a86..55415af08c4cf65942b17d18cc215ae006d9bf0a 100644 (file)
@@ -465,8 +465,9 @@ static int write_info(const interface_t *iface, const dhcp_t *dhcp,
                fprintf (f, "CLIENTID='%s'\n", hwaddr_ntoa (iface->hwaddr, iface->hwlen));
        fprintf (f, "DHCPCHADDR='%s'\n", hwaddr_ntoa (iface->hwaddr, iface->hwlen));
 
-#ifdef INFO_COMPAT
+#ifdef ENABLE_INFO_COMPAT
        /* Support the old .info settings if we need to */
+       fprintf (f, "\n# dhcpcd-1.x and 2.x compatible variables\n");
        if (dhcp->dnsservers) {
                fprintf (f, "DNS='");
                for (address = dhcp->dnsservers; address; address = address->next) {
@@ -491,7 +492,8 @@ static int write_info(const interface_t *iface, const dhcp_t *dhcp,
                fprintf (f, "'\n");
        }
 #endif
-       
+
+       fprintf (f, "\n");      
        fclose (f);
        return 0;
 }
index 99e62c9de00a2114147b8353c14220d499f1f9fc..ac4eb2e3dc62241dd6f99bd496049c09af08a7c3 100644 (file)
@@ -30,7 +30,7 @@
 #define ENABLE_INFO
 
 /* Define this to enable some compatability with 1.x and 2.x info files */
-// #define INFO_COMPAT
+// #define ENABLE_INFO_COMPAT
 
 #include "dhcpcd.h"
 #include "interface.h"