summaryrefslogtreecommitdiff
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-03-29 22:43:43 +0000
committerMark Murray <markm@FreeBSD.org>2002-03-29 22:43:43 +0000
commit4cd01193678a79d81b61be31c50b139d7a4c44d4 (patch)
tree4e267e060bfb6d96f46ab0d79c49b277402c0dd0 /lib/libfetch/http.c
parent37c973e3dd3467124ce11509ff88977bb58a0640 (diff)
Notes
Diffstat (limited to 'lib/libfetch/http.c')
-rw-r--r--lib/libfetch/http.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index eed12f2022e8..8d040d075510 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -80,8 +80,6 @@ __FBSDID("$FreeBSD$");
#include "common.h"
#include "httperr.h"
-extern char *__progname; /* XXX not portable */
-
/* Maximum number of redirects to follow */
#define MAX_REDIRECT 5
@@ -840,7 +838,7 @@ _http_request(struct url *URL, const char *op, struct url_stat *us,
if ((p = getenv("HTTP_USER_AGENT")) != NULL && *p != '\0')
_http_cmd(fd, "User-Agent: %s", p);
else
- _http_cmd(fd, "User-Agent: %s " _LIBFETCH_VER, __progname);
+ _http_cmd(fd, "User-Agent: %s " _LIBFETCH_VER, _getprogname());
if (url->offset)
_http_cmd(fd, "Range: bytes=%lld-", (long long)url->offset);
_http_cmd(fd, "Connection: close");