From: Roy Marples Date: Mon, 26 Jan 2009 12:56:38 +0000 (+0000) Subject: while -> for X-Git-Tag: v4.0.9~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8af75e4fdae7c4ecc4ef4dd961c5b09ee335a416;p=thirdparty%2Fdhcpcd.git while -> for --- diff --git a/dhcp.c b/dhcp.c index 4bb47d31..89ca9afb 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';