summaryrefslogtreecommitdiffstats
path: root/duid.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-02-06 10:18:03 +0000
committerRoy Marples <roy@marples.name>2008-02-06 10:18:03 +0000
commit2136d44495f4bd145ab6df48bc951abb70bfe564 (patch)
tree9c0385da1ea45baba92ca9f19bfc6e2ae0e01071 /duid.c
parentc737e99e65a44c413d3c16d6ce79403727033d7e (diff)
downloaddhcpcd-2136d44495f4bd145ab6df48bc951abb70bfe564.tar.xz
Rename getline to get_line so we don't conflict with crappy GNU headers that wrongly expose getline when _GNU_SOURCE isn't set. Bug #17.
Diffstat (limited to 'duid.c')
-rw-r--r--duid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/duid.c b/duid.c
index 9fd6f4be..e4dd83b9 100644
--- a/duid.c
+++ b/duid.c
@@ -60,7 +60,7 @@ size_t get_duid (unsigned char *duid, const interface_t *iface)
/* If we already have a DUID then use it as it's never supposed
* to change once we have one even if the interfaces do */
if ((f = fopen (DUIDFILE, "r"))) {
- char *line = getline (f);
+ char *line = get_line (f);
if (line) {
len = hwaddr_aton (NULL, line);
if (len && len <= DUID_LEN)