summaryrefslogtreecommitdiffstats
path: root/pacredir.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-30 15:42:04 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-10-30 15:42:04 +0100
commita09b879aeab6089ffd10a959089764cd5b9919be (patch)
tree119d2fab4aef60bd2674d6aa2db4a09a7f64a32b /pacredir.c
parenteb49f6926581f9f9d7e6d9853ad41533fd779c07 (diff)
downloadpacredir-a09b879aeab6089ffd10a959089764cd5b9919be.tar.gz
pacredir-a09b879aeab6089ffd10a959089764cd5b9919be.tar.zst
use long for http_code and last_modified
Diffstat (limited to 'pacredir.c')
-rw-r--r--pacredir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pacredir.c b/pacredir.c
index 7867cff..087b982 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -170,7 +170,7 @@ static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UN
}
/*** get_http_code ***/
-int get_http_code(const char * host, const uint16_t port, const char * url, int * http_code, int * last_modified) {
+int get_http_code(const char * host, const uint16_t port, const char * url, long * http_code, long * last_modified) {
CURL *curl;
CURLcode res;
@@ -238,8 +238,8 @@ static int ahc_echo(void * cls, struct MHD_Connection * connection, const char *
struct stat fst;
char * filename;
- int http_code, recent = 0;
- int last_modified, last_modified_recent = 0;
+ long http_code, recent = 0;
+ long last_modified, last_modified_recent = 0;
/* we want to filename, not the path */
basename = uri;