aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-05-13 13:48:09 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-05-13 13:48:09 +0200
commit67f9cf8a9393440aa715be8c18d399f6394d07b8 (patch)
treee9ac327595056171f45d8be2228756dd500e4a78
parentcdbb05bf6a2864077f905cb96353e83f5b2b9ea8 (diff)
downloadpacredir-67f9cf8a9393440aa715be8c18d399f6394d07b8.tar.gz
pacredir-67f9cf8a9393440aa715be8c18d399f6394d07b8.tar.zst
update version strings
-rw-r--r--pacredir.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pacredir.c b/pacredir.c
index 6453bcf..11ab5f9 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -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]);