aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-01 14:42:50 +0200
committerjoe <rbo@gmx.us>2025-10-01 14:42:50 +0200
commitf17565d58a4d205bcb9617edf090c4c3eca27499 (patch)
tree676e2961e10d0011938945402a14d97b6235e0e8
parent2 (diff)
downloadherbe-f17565d58a4d205bcb9617edf090c4c3eca27499.tar.gz
herbe-f17565d58a4d205bcb9617edf090c4c3eca27499.tar.bz2
herbe-f17565d58a4d205bcb9617edf090c4c3eca27499.tar.xz
herbe-f17565d58a4d205bcb9617edf090c4c3eca27499.tar.zst
herbe-f17565d58a4d205bcb9617edf090c4c3eca27499.zip
up
-rw-r--r--herbe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/herbe.c b/herbe.c
index 3936f9d..282b950 100644
--- a/herbe.c
+++ b/herbe.c
@@ -82,12 +82,12 @@ void expire(int sig)
}
void read_y_offset(unsigned int **offset, int *id) {
- int shm_id = shmget(8432, sizeof(unsigned int), IPC_CREAT | 0660);
- if (shm_id == -1) die("shmget failed");
+ int shm_id = shmget(8432, sizeof(unsigned int), IPC_CREAT | 0660);
+ if (shm_id == -1) die("shmget failed");
- *offset = (unsigned int *)shmat(shm_id, 0, 0);
- if (*offset == (unsigned int *)-1) die("shmat failed\n");
- *id = shm_id;
+ *offset = (unsigned int *)shmat(shm_id, 0, 0);
+ if (*offset == (unsigned int *)-1) die("shmat failed\n");
+ *id = shm_id;
}
void free_y_offset(int id) {