summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-06-05 22:10:25 +0000
committerbapt <bapt@FreeBSD.org>2014-06-05 22:10:25 +0000
commite9021f700469b182fc5168fee2605dc3723b9ee6 (patch)
treeb812f728357e89ffce52e7a29d418c7feff47cb9 /lib
parent55b11740459fa9cfd341e8178dfdf729c9cf8024 (diff)
downloadFreeBSD-src-e9021f700469b182fc5168fee2605dc3723b9ee6.zip
FreeBSD-src-e9021f700469b182fc5168fee2605dc3723b9ee6.tar.gz
Use NULL instead of 0
Patch by Sascha Wildner <saw@online.de> for Dragonfly Reviewed by: des Obtained from: Dragonfly MFC after: 1 week
Diffstat (limited to 'lib')
-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 983936c..7b7955e 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -1030,7 +1030,7 @@ typedef struct {
static void
init_http_auth_params(http_auth_params_t *s)
{
- s->scheme = s->realm = s->user = s->password = 0;
+ s->scheme = s->realm = s->user = s->password = NULL;
}
static void
@@ -1249,7 +1249,7 @@ http_digest_auth(conn_t *conn, const char *hdr, http_auth_challenge_t *c,
int r;
char noncecount[10];
char cnonce[40];
- char *options = 0;
+ char *options = NULL;
if (!c->realm || !c->nonce) {
DEBUG(fprintf(stderr, "realm/nonce not set in challenge\n"));
OpenPOWER on IntegriCloud