summaryrefslogtreecommitdiff
path: root/lib/libfetch/fetch.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-05-07 20:02:52 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-05-07 20:02:52 +0000
commit807c941c90bd51893a26af883a71167166d8cec6 (patch)
tree259f5b89bcc993e40702aec9bb421815b49cf8ee /lib/libfetch/fetch.c
parente6182307e80c9b90c02bff8161456abbb6e46d01 (diff)
Notes
Diffstat (limited to 'lib/libfetch/fetch.c')
-rw-r--r--lib/libfetch/fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c
index 3c944a189be7..bc2f565d9c95 100644
--- a/lib/libfetch/fetch.c
+++ b/lib/libfetch/fetch.c
@@ -224,7 +224,7 @@ fetchParseURL(char *URL)
int i;
/* allocate struct url */
- if ((u = calloc(1, sizeof(struct url))) == NULL) {
+ if ((u = calloc(1, sizeof *u)) == NULL) {
errno = ENOMEM;
_fetch_syserr();
return NULL;
@@ -284,7 +284,7 @@ nohost:
/* document */
if (*p) {
struct url *t;
- t = realloc(u, sizeof(*u)+strlen(p)-1);
+ t = realloc(u, sizeof *u + strlen(p) - 1);
if (t == NULL) {
errno = ENOMEM;
_fetch_syserr();