summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-12 00:26:48 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-12 00:26:48 +0000
commit5beb80eca3d19bd026ffed20ccb272f892fc040c (patch)
tree622b3bf88840e42612d55f1fca744b314b906155 /libc
parentcd32e70eb1ecfac0c92f15288c3d8ae273363bda (diff)
Fix this one up so it works
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/sysvipc/shm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/misc/sysvipc/shm.c b/libc/misc/sysvipc/shm.c
index 3ac7e366b..7ac7d35b0 100644
--- a/libc/misc/sysvipc/shm.c
+++ b/libc/misc/sysvipc/shm.c
@@ -28,10 +28,10 @@
segment of the calling process. SHMADDR and SHMFLG determine how
and where the segment is attached. */
#if defined (__alpha__)
-#define __NR_osf_shmat __NR_shmat
+#define __NR_shmat __NR_osf_shmat
#endif
#ifdef __NR_shmat
-_syscall3(void *, shmat, int shmid, const void *shmaddr, int shmflg);
+_syscall3(void *, shmat, int, shmid, const void *,shmaddr, int, shmflg);
#else
void * shmat (int shmid, const void *shmaddr, int shmflg)
{
@@ -75,7 +75,7 @@ int shmdt (const void *shmaddr)
/* Return an identifier for an shared memory segment of at least size SIZE
which is associated with KEY. */
#ifdef __NR_shmget
-_syscall1(int, shmget, key_t, key, size_t, size, int, shmflg);
+_syscall3(int, shmget, key_t, key, size_t, size, int, shmflg);
#else
int shmget (key_t key, size_t size, int shmflg)
{