diff options
author | Dan McGee <dan@archlinux.org> | 2008-01-11 23:19:52 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-11 23:19:52 -0600 |
commit | 2630556bdef7a07fda056fdcd0a2fa00c3625d3c (patch) | |
tree | 28df73e8d5a4f0d6096a178d1fcb80a530a4bdfc /src/pacman | |
parent | 112caad838762383708d692f6479fe112b35f4fc (diff) | |
parent | 8ffa6fa7adf291b3dad822c459e1372a31af09f1 (diff) |
Merge branch 'maint'
Diffstat (limited to 'src/pacman')
-rw-r--r-- | src/pacman/pacman.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 4171055a..1aa29682 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -179,14 +179,12 @@ static void localize(void) */ static void setuseragent(void) { - const char *pacman = "Pacman/" PACKAGE_VERSION; - const char *libalpm = "libalpm/" LIB_VERSION; char agent[101]; struct utsname un; uname(&un); - snprintf(agent, 100, "%s (%s %s %s; %s) %s", pacman, un.sysname, - un.machine, un.release, setlocale(LC_MESSAGES, NULL), libalpm); + snprintf(agent, 100, "pacman/" PACKAGE_VERSION " (%s %s) libalpm/" LIB_VERSION, + un.sysname, un.machine); setenv("HTTP_USER_AGENT", agent, 0); } |