Use NULL instead of (FOO *)0, it's easier to read.
This commit is contained in:
parent
3252f8a907
commit
21bf6b41d4
23 changed files with 75 additions and 79 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue