diff options
author | Christian Hesse <mail@eworm.de> | 2013-10-30 15:42:04 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-10-30 15:42:04 +0100 |
commit | a09b879aeab6089ffd10a959089764cd5b9919be (patch) | |
tree | 119d2fab4aef60bd2674d6aa2db4a09a7f64a32b | |
parent | eb49f6926581f9f9d7e6d9853ad41533fd779c07 (diff) | |
download | pacredir-a09b879aeab6089ffd10a959089764cd5b9919be.tar.gz pacredir-a09b879aeab6089ffd10a959089764cd5b9919be.tar.zst |
use long for http_code and last_modified
-rw-r--r-- | pacredir.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |