sparse: replace 0 (integer) usage with NULL where appropriate

Probably pedantic, but yes, might as well in case we run into
strange platforms where NULL is something strange.

git-svn-id: https://svn.musicpd.org/mpd/trunk@4380 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Eric Wong
2006-07-17 00:15:52 +00:00
parent 232dcf4b94
commit 368034e199
3 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ void initPlayerData(void) {
ERROR("problems shmat'ing\n");
exit(EXIT_FAILURE);
}
if (shmctl(shmid, IPC_RMID, 0)<0) {
if (shmctl(shmid, IPC_RMID, NULL)<0) {
ERROR("problems shmctl'ing\n");
exit(EXIT_FAILURE);
}
@@ -115,7 +115,7 @@ void initPlayerData(void) {
ERROR("problems shmat'ing\n");
exit(EXIT_FAILURE);
}
if (shmctl(shmid, IPC_RMID, 0)<0) {
if (shmctl(shmid, IPC_RMID, NULL)<0) {
ERROR("problems shmctl'ing\n");
exit(EXIT_FAILURE);
}