summaryrefslogtreecommitdiff
path: root/lang/elk/patches/patch-aw
blob: 359290e3a49092f8c445934273ee25a327bdfed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-aw,v 1.1 2004/03/28 15:51:25 uebayasi Exp $

--- src/terminate.c.orig	Mon Aug  7 16:30:12 1995
+++ src/terminate.c
@@ -1,7 +1,7 @@
 /* Termination functions, weak pointers.
  */
 
-#include <varargs.h>
+#include <stdarg.h>
 
 #include "kernel.h"
 
@@ -50,17 +50,11 @@ void Deregister_Object (obj) Object obj;
  * Null is returned when the object has not been found.
  */
 /*VARARGS*/
-Object Find_Object (va_alist) va_dcl {
+Object Find_Object (int type, GENERIC group, MATCHFUN match, ...) {
     WEAK_NODE *p;
-    int type;
-    GENERIC group;
-    MATCHFUN match;
     va_list args;
 
-    va_start (args);
-    type = va_arg (args, int);
-    group = va_arg (args, GENERIC);
-    match = va_arg (args, MATCHFUN);
+    va_start (args, match);
     for (p = first; p; p = p->next) {
 	if (TYPE(p->obj) != type || p->group != group)
 	    continue;