summaryrefslogtreecommitdiffstats
path: root/dhcp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-26 12:56:38 +0000
committerRoy Marples <roy@marples.name>2009-01-26 12:56:38 +0000
commit39f5c665ce0054f2cb7dc93c2f62fbbec7f286bf (patch)
tree05e5756041f107e1bca608e172a9bc4160eca2c0 /dhcp.c
parentcb69faa64089c86fa4d3bb8872d5d319b20ccc69 (diff)
downloaddhcpcd-39f5c665ce0054f2cb7dc93c2f62fbbec7f286bf.tar.xz
while -> for
Diffstat (limited to 'dhcp.c')
-rw-r--r--dhcp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dhcp.c b/dhcp.c
index 20c73771..264189bb 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -726,7 +726,7 @@ encode_rfc1035(const char *src, uint8_t *dst)
if (*src == '\0')
return 0;
- while (*src) {
+ for (; *src; src++) {
if (*src == '\0')
break;
if (*src == '.') {
@@ -739,7 +739,6 @@ encode_rfc1035(const char *src, uint8_t *dst)
lp = p++;
} else
*p++ = (uint8_t)*src;
- src++;
}
*lp = p - lp - 1;
*p++ = '\0';