Permalink
Browse files

restore c89 compatibility

  • Loading branch information...
1 parent cf58019 commit 701221b7ba7c49bb8a98873afd79726ed024d607 @kazuho kazuho committed Sep 8, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 picohttpparser.c
View
@@ -109,12 +109,13 @@ static const char* is_complete(const char* buf, const char* buf_end,
static const char* parse_int(const char* buf, const char* buf_end, int* value,
int* ret)
{
+ int v;
CHECK_EOF();
if (! ('0' <= *buf && *buf <= '9')) {
*ret = -1;
return NULL;
}
- int v = 0;
+ v = 0;
for (; ; ++buf) {
CHECK_EOF();
if ('0' <= *buf && *buf <= '9') {

0 comments on commit 701221b

Please sign in to comment.