diff options
author | Nick White <hg@njw.me.uk> | 2011-07-16 23:48:08 +0100 |
---|---|---|
committer | Nick White <hg@njw.me.uk> | 2011-07-16 23:48:08 +0100 |
commit | 721770691c964dbd630716add95a362a0cecba4d (patch) | |
tree | c5008e66211b617b9c77e82a4af005ca8e5501b8 /util.c | |
parent | c2892e23ef3aa063812714323b5e8f9ebe0fc318 (diff) |
Improve build system
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ static int dial(char *host, char *port) { int get(char *host, char *path, char **buf) { size_t l, res; - int fd, i; + int fd, i, p; char h[1024] = "\0"; FILE *srv; @@ -49,7 +49,7 @@ int get(char *host, char *path, char **buf) { while(h[0] != '\r') { fgets(h, 1024, srv); - if(sscanf(h, "HTTP/%d.%d %d", &i, &i, &l) == 3 && l != 200) + if(sscanf(h, "HTTP/%d.%d %d", &i, &i, &p) == 3 && p != 200) return 1; } |