From a09b879aeab6089ffd10a959089764cd5b9919be Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 30 Oct 2013 15:42:04 +0100 Subject: use long for http_code and last_modified --- pacredir.c | 6 +++--- 1 file 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; -- cgit v1.2.3-54-g00ecf