summaryrefslogtreecommitdiff
path: root/choose.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-07-14 13:05:52 -0700
committerAlan Coopersmith <alanc@alf.(none)>2006-07-14 13:05:52 -0700
commit5283b118b4bfdb1a85356147701f602b884c342b (patch)
tree8751ba258d8a74ee929b87887393be369ba2091f /choose.c
parent41211f8c849de67cebeb9d9f7516eb5a4a7eb3cf (diff)
Fix many sparse warnings of: Using plain integer as NULL pointer
Also fixes Login.c:1329:5: warning: mixing declarations and code from extra ;
Diffstat (limited to 'choose.c')
-rw-r--r--choose.c12
1 files changed, 6 insertions, 6 deletions
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)) {