summaryrefslogtreecommitdiff
path: root/misc/buffer/patches/patch-ab
blob: c10f674a4a8d1b9fcfa8379d68a5557b0f27db17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ab,v 1.1 1999/04/05 02:00:49 hubertf Exp $

--- sem.c.BAK	Mon Apr  5 03:56:15 1999
+++ sem.c	Mon Apr  5 03:57:04 1999
@@ -148,10 +148,12 @@
 remove_sems( sem_id )
 	int sem_id;
 {
+	union semun dummy;
+
 	if( sem_id == -1 )
 		return;
 
-	if( semctl( sem_id, 0, IPC_RMID, NULL ) == -1 ){
+	if( semctl( sem_id, 0, IPC_RMID, dummy ) == -1 ){
 		report_proc();
 		perror( "internal error, failed to remove semaphore" );
 	}