summaryrefslogtreecommitdiff
path: root/net_ntrip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-10 09:58:02 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-10 09:58:02 -0400
commit9901f181b6ee0aea52f0f36c4a635ec56e487102 (patch)
tree1aa51d5ea76c86414a4fb633bbbb853be04bd6e3 /net_ntrip.c
parentae0fefcc97d8c9397a22b9eb73289977273509b6 (diff)
downloadgpsd-9901f181b6ee0aea52f0f36c4a635ec56e487102.tar.gz
Shameless microtweaking.
for (;;) generates tighter code than while (1). No practical difference but it bugs me anyway. All regression tests pass.
Diffstat (limited to 'net_ntrip.c')
-rw-r--r--net_ntrip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net_ntrip.c b/net_ntrip.c
index 048c4e08..cb056ad8 100644
--- a/net_ntrip.c
+++ b/net_ntrip.c
@@ -165,7 +165,7 @@ static int ntrip_sourcetable_parse(struct gps_device_t *device)
size_t blen = BUFSIZ;
int fd = device->gpsdata.gps_fd;
- while (1) {
+ for (;;) {
char *eol;
ssize_t rlen;