diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-15 13:56:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-15 13:56:02 +0200 |
commit | fff2beeeaa2c02a18fa4b2a6807717679e1a6dcf (patch) | |
tree | c7f77628ab6a605e7d1c111556a32a52e5c6006e /src/if_sniff.c | |
parent | 00a927d62b68a3523cb1c4f9aa3f7683345c8182 (diff) | |
download | vim-git-fff2beeeaa2c02a18fa4b2a6807717679e1a6dcf.tar.gz |
First step in the Vim 7.3 branch. Changed version numbers.
Diffstat (limited to 'src/if_sniff.c')
-rw-r--r-- | src/if_sniff.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/if_sniff.c b/src/if_sniff.c index cf38e534c..d82f4e59b 100644 --- a/src/if_sniff.c +++ b/src/if_sniff.c @@ -969,20 +969,20 @@ get_request(fd, buf, maxlen) #ifdef HAVE_SELECT if (select(fd + 1, &rfds, NULL, NULL, &tval) > 0) #else - if (poll(&fds, 1, 0) > 0) + if (poll(&fds, 1, 0) > 0) #endif - { - pos = 0; - bytes = read(fd, inbuf, sizeof(inbuf)); - if (bytes <= 0) - return bytes; - } - else - { - pos = pos-len; - buf[0] = '\0'; - return 0; - } + { + pos = 0; + bytes = read(fd, inbuf, sizeof(inbuf)); + if (bytes <= 0) + return bytes; + } + else + { + pos = pos-len; + buf[0] = '\0'; + return 0; + } } if ((buf[len] = inbuf[pos++]) =='\n') break; |