summaryrefslogtreecommitdiff
path: root/lib/libfetch/fetch.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-01-28 08:04:40 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-01-28 08:04:40 +0000
commit930105c1e9a553c4faa1364d56f79f3fbdd383fb (patch)
tree3c45c995c4be16b325a0ec0ed6294d455330232a /lib/libfetch/fetch.c
parent2abcaf6bfde0f065761937417dcb07f1094d1875 (diff)
Notes
Diffstat (limited to 'lib/libfetch/fetch.c')
-rw-r--r--lib/libfetch/fetch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c
index fd44ad56ab40..59ee8a849f5f 100644
--- a/lib/libfetch/fetch.c
+++ b/lib/libfetch/fetch.c
@@ -274,7 +274,7 @@ fetchMakeURL(const char *scheme, const char *host, int port, const char *doc,
}
/* allocate struct url */
- if ((u = calloc(1, sizeof *u)) == NULL) {
+ if ((u = calloc(1, sizeof(*u))) == NULL) {
_fetch_syserr();
return (NULL);
}
@@ -285,7 +285,7 @@ fetchMakeURL(const char *scheme, const char *host, int port, const char *doc,
return (NULL);
}
-#define seturl(x) snprintf(u->x, sizeof u->x, "%s", x)
+#define seturl(x) snprintf(u->x, sizeof(u->x), "%s", x)
seturl(scheme);
seturl(host);
seturl(user);
@@ -310,7 +310,7 @@ fetchParseURL(const char *URL)
int i;
/* allocate struct url */
- if ((u = calloc(1, sizeof *u)) == NULL) {
+ if ((u = calloc(1, sizeof(*u))) == NULL) {
_fetch_syserr();
return (NULL);
}