aboutsummaryrefslogtreecommitdiffstats
path: root/src/playerData.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/playerData.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playerData.c b/src/playerData.c
index 2c18b6937..a023d76e9 100644
--- a/src/playerData.c
+++ b/src/playerData.c
@@ -96,7 +96,7 @@ void initPlayerData(void)
ERROR("problems shmget'ing\n");
exit(EXIT_FAILURE);
}
- if ((playerData_pd = shmat(shmid, NULL, 0)) < 0) {
+ if (!(playerData_pd = shmat(shmid, NULL, 0))) {
ERROR("problems shmat'ing\n");
exit(EXIT_FAILURE);
}
@@ -112,7 +112,7 @@ void initPlayerData(void)
ERROR("problems shmget'ing\n");
exit(EXIT_FAILURE);
}
- if ((player_pid = shmat(shmid, NULL, 0)) < 0) {
+ if (!(player_pid = shmat(shmid, NULL, 0))) {
ERROR("problems shmat'ing\n");
exit(EXIT_FAILURE);
}