Mercurial > hg > dhcpcd
changeset 100:04c997c93234 draft
Rename define and add comment to info file
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 16 Apr 2007 08:33:22 +0000 |
| parents | 8814440c9675 |
| children | 694daa93062a |
| files | configure.c configure.h |
| diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.c Sun Apr 15 18:41:14 2007 +0000 +++ b/configure.c Mon Apr 16 08:33:22 2007 +0000 @@ -465,8 +465,9 @@ 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 @@ fprintf (f, "'\n"); } #endif - + + fprintf (f, "\n"); fclose (f); return 0; }
--- a/configure.h Sun Apr 15 18:41:14 2007 +0000 +++ b/configure.h Mon Apr 16 08:33:22 2007 +0000 @@ -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"
