diff options
author | Christian Hesse <mail@eworm.de> | 2017-05-13 13:48:09 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-05-13 13:48:09 +0200 |
commit | 67f9cf8a9393440aa715be8c18d399f6394d07b8 (patch) | |
tree | e9ac327595056171f45d8be2228756dd500e4a78 | |
parent | cdbb05bf6a2864077f905cb96353e83f5b2b9ea8 (diff) | |
download | pacredir-67f9cf8a9393440aa715be8c18d399f6394d07b8.tar.gz pacredir-67f9cf8a9393440aa715be8c18d399f6394d07b8.tar.zst |
update version strings
-rw-r--r-- | pacredir.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -295,7 +295,7 @@ static void * get_http_code(void * data) { /* tell libcurl to follow redirection */ curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); /* set user agent */ - curl_easy_setopt(curl, CURLOPT_USERAGENT, "pacredir/" VERSION " (" ARCH ")"); + curl_easy_setopt(curl, CURLOPT_USERAGENT, "pacredir/" VERSION " (" ID "/" ARCH ")"); /* do not receive body */ curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); /* ask for filetime */ @@ -638,8 +638,9 @@ int main(int argc, char ** argv) { } if (verbose > 0) - write_log(stdout, "%s: %s v%s (compiled: " __DATE__ ", " __TIME__ " for %s)\n", - argv[0], PROGNAME, VERSION, ARCH); + write_log(stdout, "%s: " PROGNAME " v" VERSION " " ID "/" ARCH + " (compiled: " __DATE__ ", " __TIME__ ")" + "\n", argv[0]); if (help > 0) write_log(stdout, "usage: %s [-h] [-v] [-V]\n", argv[0]); |