aboutsummaryrefslogtreecommitdiff
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-01-28 08:04:40 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-01-28 08:04:40 +0000
commit930105c1e9a553c4faa1364d56f79f3fbdd383fb (patch)
tree3c45c995c4be16b325a0ec0ed6294d455330232a /lib/libfetch/http.c
parent2abcaf6bfde0f065761937417dcb07f1094d1875 (diff)
downloadsrc-930105c1e9a553c4faa1364d56f79f3fbdd383fb.tar.gz
src-930105c1e9a553c4faa1364d56f79f3fbdd383fb.zip
style(9): add parentheses to sizeof even when not strictly required.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=109967
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 8eebb8310b5a..5f44c5358359 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 */