diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-12-02 22:06:15 +0100 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-06 17:15:32 -0200 |
commit | bf138553afe6eecd0e6c218dc6ae4f63065e4196 (patch) | |
tree | 5cb5bf10c3789cf05497dc0b1f90f34871bcda92 /src | |
parent | b01e82ce1deedb36c9696d4d27a3b9a5d5a52d08 (diff) |
Use NULL, not zero, for pointers
From Magnus Kessler <Magnus.Kessler@gmx.net>
http://lists.freedesktop.org/archives/xorg/2008-October/039799.html
http://lists.freedesktop.org/archives/xorg/attachments/20081030/b2ea5b1c/attachment-0001.bin
Diffstat (limited to 'src')
-rw-r--r-- | src/accept.c | 2 | ||||
-rw-r--r-- | 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 { |