summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-01-28 08:04:40 +0000
committerdes <des@FreeBSD.org>2003-01-28 08:04:40 +0000
commit7a494517a4096a46a570ba094cbd24a7301b549c (patch)
tree3c45c995c4be16b325a0ec0ed6294d455330232a /lib/libfetch/http.c
parent460afc73404cad5304f935c63417e1d5a7dd7f8f (diff)
downloadFreeBSD-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/http.c')
-rw-r--r--lib/libfetch/http.c4
1 files changed, 2 insertions, 2 deletions
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 */
OpenPOWER on IntegriCloud