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:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user