Don't use 0 as null pointer constant, part 1

Use NULL instead of 0, for clarity.  Except in pointer comparisons;
leave that to the next two commits.
This commit is contained in:
Markus Armbruster 2009-03-22 18:50:43 +01:00
parent a2ed975ec2
commit 615681ce16
51 changed files with 107 additions and 100 deletions

View file

@ -82,8 +82,8 @@ io_open(int fd, int flags, int bufsize, struct timeval timeout)
if (!iop)
return NULL;
iop->fd = fd;
iop->input = 0;
iop->output = 0;
iop->input = NULL;
iop->output = NULL;
iop->flags = 0;
iop->input_timeout = timeout;
iop->bufsize = bufsize;

View file

@ -65,7 +65,7 @@ empth_create(void (*entry)(void *), int size, int flags,
{
if (!flags)
flags = empth_flags;
return lwpCreate(1, entry, size, flags, name, 0, 0, ud);
return lwpCreate(1, entry, size, flags, name, 0, NULL, ud);
}
empth_t *