Use NULL instead of (FOO *)0, it's easier to read.

This commit is contained in:
Markus Armbruster 2006-03-23 20:48:49 +00:00
parent 3252f8a907
commit 21bf6b41d4
23 changed files with 75 additions and 79 deletions

View file

@ -50,11 +50,11 @@ emp_insque(struct emp_qelem *elem, struct emp_qelem *queue)
void
emp_remque(struct emp_qelem *elem)
{
if (elem == (struct emp_qelem *)0)
if (!elem)
return;
if (elem->q_forw != (struct emp_qelem *)0)
if (elem->q_forw)
elem->q_forw->q_back = elem->q_back;
if (elem->q_back != (struct emp_qelem *)0)
if (elem->q_back)
elem->q_back->q_forw = elem->q_forw;
}