diff options
author | 2014-01-19 03:54:25 +0000 | |
---|---|---|
committer | 2014-01-19 03:54:25 +0000 | |
commit | 3e69b17d485ecb15d0a006e6374b415767fc0f96 (patch) | |
tree | 3870fbc1d1f1a494d59b8346b094077512aeff3d | |
parent | hwflags is never used, so clean it up (diff) | |
download | wireguard-openbsd-3e69b17d485ecb15d0a006e6374b415767fc0f96.tar.xz wireguard-openbsd-3e69b17d485ecb15d0a006e6374b415767fc0f96.zip |
Adjust lexchar position by ugflag once only.
-rw-r--r-- | sbin/dhclient/conflex.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/dhclient/conflex.c b/sbin/dhclient/conflex.c index 59888293d95..588873e2178 100644 --- a/sbin/dhclient/conflex.c +++ b/sbin/dhclient/conflex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conflex.c,v 1.27 2014/01/18 01:41:28 krw Exp $ */ +/* $OpenBSD: conflex.c,v 1.28 2014/01/19 03:54:25 krw Exp $ */ /* Lexical scanner for dhclient config file. */ @@ -130,11 +130,14 @@ get_token(FILE *cfile) { int c, ttok; static char tb[2]; - int l, p; + int l, p, u; + u = ugflag; + do { l = line; - p = lpos - ugflag; + p = lpos - u; + u = 0; c = get_char(cfile); |