[PATCH:libFS 3/6] Use NULL instead of 0 for null pointers

Alan Coopersmith alan.coopersmith at oracle.com
Fri Apr 12 20:58:44 PDT 2013


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/FSFontInfo.c |    8 ++++----
 src/FSFtNames.c  |    2 +-
 src/FSListCats.c |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/FSFontInfo.c b/src/FSFontInfo.c
index bfeeb65..0b71719 100644
--- a/src/FSFontInfo.c
+++ b/src/FSFontInfo.c
@@ -68,10 +68,10 @@ FSListFontsWithXInfo(
     int         i,
                 j;
     size_t      size = 0;
-    FSXFontInfoHeader **fhdr = (FSXFontInfoHeader **) 0;
-    FSPropInfo **pi = (FSPropInfo **) 0;
-    FSPropOffset **po = (FSPropOffset **) 0;
-    unsigned char **pd = (unsigned char **) 0;
+    FSXFontInfoHeader **fhdr = (FSXFontInfoHeader **) NULL;
+    FSPropInfo **pi = (FSPropInfo **) NULL;
+    FSPropOffset **po = (FSPropOffset **) NULL;
+    unsigned char **pd = (unsigned char **) NULL;
     char      **flist = NULL;
     fsListFontsWithXInfoReply reply;
     fsListFontsWithXInfoReq *req;
diff --git a/src/FSFtNames.c b/src/FSFtNames.c
index f884d75..1cac9d4 100644
--- a/src/FSFtNames.c
+++ b/src/FSFtNames.c
@@ -77,7 +77,7 @@ FSListFonts(
     _FSSend(svr, pattern, nbytes);
     if (!_FSReply(svr, (fsReply *) & rep,
 	  (SIZEOF(fsListFontsReply) - SIZEOF(fsGenericReply)) >> 2, fsFalse))
-	return (char **) 0;
+	return (char **) NULL;
 
     if (rep.nFonts
 #if (SIZE_MAX >> 2) <= UINT_MAX
diff --git a/src/FSListCats.c b/src/FSListCats.c
index 0135792..7987f79 100644
--- a/src/FSListCats.c
+++ b/src/FSListCats.c
@@ -77,7 +77,7 @@ FSListCatalogues(
     _FSSend(svr, pattern, nbytes);
     if (!_FSReply(svr, (fsReply *) & rep,
     (SIZEOF(fsListCataloguesReply) - SIZEOF(fsGenericReply)) >> 2, fsFalse))
-	return (char **) 0;
+	return (char **) NULL;
 
     if (rep.num_catalogues
 #if (SIZE_MAX >> 2) <= UINT_MAX
-- 
1.7.9.2



More information about the xorg-devel mailing list