summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNick White <hg@njw.me.uk>2011-07-16 23:48:08 +0100
committerNick White <hg@njw.me.uk>2011-07-16 23:48:08 +0100
commit721770691c964dbd630716add95a362a0cecba4d (patch)
treec5008e66211b617b9c77e82a4af005ca8e5501b8 /util.c
parentc2892e23ef3aa063812714323b5e8f9ebe0fc318 (diff)
Improve build system
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index 47facef..46dcf16 100644
--- a/util.c
+++ b/util.c
@@ -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;
}