diff options
author | des <des@FreeBSD.org> | 2003-01-28 08:04:40 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-01-28 08:04:40 +0000 |
commit | 7a494517a4096a46a570ba094cbd24a7301b549c (patch) | |
tree | 3c45c995c4be16b325a0ec0ed6294d455330232a /lib/libfetch/fetch.c | |
parent | 460afc73404cad5304f935c63417e1d5a7dd7f8f (diff) | |
download | FreeBSD-src-7a494517a4096a46a570ba094cbd24a7301b549c.zip FreeBSD-src-7a494517a4096a46a570ba094cbd24a7301b549c.tar.gz |
style(9): add parentheses to sizeof even when not strictly required.
MFC after: 3 days
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); } |