about summary refs log tree commit diff
path: root/sysdeps/generic/bp-semctl.h
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-07-27 07:28:10 +0000
committerGreg McGary <greg@mcgary.org>2000-07-27 07:28:10 +0000
commitda8f38c5047cda3ecb9dcf2dc780572a44659778 (patch)
treefb1b643fb09e85bd7efbc15b5ac2ea81785dba39 /sysdeps/generic/bp-semctl.h
parentd25c879dc55dcc6a477fdce1c75382afec7596b8 (diff)
downloadglibc-da8f38c5047cda3ecb9dcf2dc780572a44659778.tar.gz
glibc-da8f38c5047cda3ecb9dcf2dc780572a44659778.tar.xz
glibc-da8f38c5047cda3ecb9dcf2dc780572a44659778.zip
* sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
* sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error 
in union init.  Pass zero for ignored semnum arg to semctl. 
* sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
2000-07-27  Greg McGary  <greg@mcgary.org>

	* sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
	* sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
	in union init.  Pass zero for ignored semnum arg to semctl.
	* sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
Diffstat (limited to 'sysdeps/generic/bp-semctl.h')
-rw-r--r--sysdeps/generic/bp-semctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/bp-semctl.h b/sysdeps/generic/bp-semctl.h
index 86a6b27734..7ba8f43bfd 100644
--- a/sysdeps/generic/bp-semctl.h
+++ b/sysdeps/generic/bp-semctl.h
@@ -43,12 +43,12 @@ check_semctl (union semun *arg, int semid, int cmd)
     case SETALL:
       {
 	struct semid_ds ds;
-	union semun un = { buf: &ds; };
+	union semun un = { buf: &ds };
 	unsigned int length = ~0;
 
 	/* It's unfortunate that we need to make a recursive
 	   system call to get the size of the semaphore set...  */
-	if (semctl (semid, semnum, IPC_STAT | ipc64, un) == 0)
+	if (semctl (semid, 0, IPC_STAT | ipc64, un) == 0)
 	  length = ds.sem_nsems;
 	(void) CHECK_N (arg->array, length);
 	break;