From b5f680a29281b52f26af5657fb580693acd97369 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Tue, 2 Dec 2008 22:06:15 +0100 Subject: [PATCH] Use NULL, not zero, for pointers From Magnus Kessler http://lists.freedesktop.org/archives/xorg/2008-October/039799.html http://lists.freedesktop.org/archives/xorg/attachments/20081030/b2ea5b1c/attachment-0001.bin --- src/accept.c | 2 +- src/authutil.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accept.c b/src/accept.c index f102b29..150d8bd 100644 --- a/src/accept.c +++ b/src/accept.c @@ -50,7 +50,7 @@ IceAcceptConnection ( * Accept the connection. */ - if ((newconn = _IceTransAccept (listenObj->trans_conn, &status)) == 0) + if ((newconn = _IceTransAccept (listenObj->trans_conn, &status)) == NULL) { if (status == TRANS_ACCEPT_BAD_MALLOC) *statusRet = IceAcceptBadMalloc; diff --git a/src/authutil.c b/src/authutil.c index 65d256f..2191f06 100644 --- a/src/authutil.c +++ b/src/authutil.c @@ -441,7 +441,7 @@ read_counted_string (FILE *file, unsigned short *countp, char **stringp) if (len == 0) { - data = 0; + data = NULL; } else { -- 1.6.0.3