From 67f9cf8a9393440aa715be8c18d399f6394d07b8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 13 May 2017 13:48:09 +0200 Subject: update version strings --- pacredir.c | 7 ++++--- 1 file 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]); -- cgit v1.2.3-70-g09d2