Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jun 2014 22:10:25 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267131 - head/lib/libfetch
Message-ID:  <201406052210.s55MAPM1012809@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jun  5 22:10:25 2014
New Revision: 267131
URL: http://svnweb.freebsd.org/changeset/base/267131

Log:
  Use NULL instead of 0
  
  Patch by Sascha Wildner <saw@online.de> for Dragonfly
  
  Reviewed by:	des
  Obtained from:	Dragonfly
  MFC after:	1 week

Modified:
  head/lib/libfetch/http.c

Modified: head/lib/libfetch/http.c
==============================================================================
--- head/lib/libfetch/http.c	Thu Jun  5 21:37:04 2014	(r267130)
+++ head/lib/libfetch/http.c	Thu Jun  5 22:10:25 2014	(r267131)
@@ -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 cha
 	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"));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406052210.s55MAPM1012809>