diff options
Diffstat (limited to 'lib/libfetch/fetch.c')
-rw-r--r-- | lib/libfetch/fetch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c index fd44ad5..59ee8a8 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); } |