From 5283b118b4bfdb1a85356147701f602b884c342b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 14 Jul 2006 13:05:52 -0700 Subject: Fix many sparse warnings of: Using plain integer as NULL pointer Also fixes Login.c:1329:5: warning: mixing declarations and code from extra ; --- choose.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'choose.c') diff --git a/choose.c b/choose.c index 1678787..ad96800 100644 --- a/choose.c +++ b/choose.c @@ -148,7 +148,7 @@ ForgetIndirectClient ( { IndirectUsersPtr i, prev; - prev = 0; + prev = NULL; for (i = indirectUsers; i; i = i->next) { if (XdmcpARRAY8Equal (clientAddress, &i->client) && @@ -254,7 +254,7 @@ IndirectChoice ( Time_t now; now = time ((Time_t*)0); - prev = 0; + prev = NULL; for (c = choices; c; c = next) { next = c->next; @@ -280,7 +280,7 @@ IndirectChoice ( prev = c; } } - return 0; + return NULL; } static int @@ -339,7 +339,7 @@ RegisterIndirectChoice ( c->next = choices; choices = c; } - c->time = time (0); + c->time = time ((Time_t *) 0); return 1; } @@ -479,9 +479,9 @@ ProcessChooserSocket (int fd) buffer.size = sizeof (buf); buffer.count = len; buffer.pointer = 0; - clientAddress.data = 0; + clientAddress.data = NULL; clientAddress.length = 0; - choice.data = 0; + choice.data = NULL; choice.length = 0; if (XdmcpReadARRAY8 (&buffer, &clientAddress)) { if (XdmcpReadCARD16 (&buffer, &connectionType)) { -- cgit v1.2.3