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:
parent
a2ed975ec2
commit
615681ce16
51 changed files with 107 additions and 100 deletions
|
@ -136,14 +136,14 @@ boar(void)
|
|||
if (att_abort(A_BOARD, off, def)) {
|
||||
pr("Board aborted\n");
|
||||
att_empty_attack(A_BOARD, 0, def);
|
||||
return att_free_lists(&olist, 0);
|
||||
return att_free_lists(&olist, NULL);
|
||||
}
|
||||
|
||||
ototal = att_get_offense(A_BOARD, off, &olist, def);
|
||||
if (att_abort(A_BOARD, off, def)) {
|
||||
pr("Board aborted\n");
|
||||
att_empty_attack(A_BOARD, 0, def);
|
||||
return att_free_lists(&olist, 0);
|
||||
return att_free_lists(&olist, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue