summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
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;
}