From 7a494517a4096a46a570ba094cbd24a7301b549c Mon Sep 17 00:00:00 2001 From: des Date: Tue, 28 Jan 2003 08:04:40 +0000 Subject: style(9): add parentheses to sizeof even when not strictly required. MFC after: 3 days --- lib/libfetch/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libfetch/http.c') diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 8eebb83..5f44c53 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -304,7 +304,7 @@ _http_funopen(conn_t *conn, int chunked) struct httpio *io; FILE *f; - if ((io = calloc(1, sizeof *io)) == NULL) { + if ((io = calloc(1, sizeof(*io))) == NULL) { _fetch_syserr(); return (NULL); } @@ -470,7 +470,7 @@ _http_parse_mtime(const char *p, time_t *mtime) char locale[64], *r; struct tm tm; - strncpy(locale, setlocale(LC_TIME, NULL), sizeof locale); + strncpy(locale, setlocale(LC_TIME, NULL), sizeof(locale)); setlocale(LC_TIME, "C"); r = strptime(p, "%a, %d %b %Y %H:%M:%S GMT", &tm); /* XXX should add support for date-2 and date-3 */ -- cgit v1.1