|
|
@@ -303,3 +303,44 @@
|
|
|
char *
|
|
|
onoff(bool)
|
|
|
int bool;
|
|
|
+--- krb5-1.2.8/src/appl/telnet/telnet/commands.c.dist 2003-05-16 12:24:35.000000000 +0200
|
|
|
++++ krb5-1.2.8/src/appl/telnet/telnet/commands.c 2003-05-16 12:31:39.000000000 +0200
|
|
|
+@@ -60,7 +60,7 @@
|
|
|
+ #include <netdb.h>
|
|
|
+ #include <ctype.h>
|
|
|
+ #include <pwd.h>
|
|
|
+-#include <varargs.h>
|
|
|
++#include <stdarg.h>
|
|
|
+ #include <errno.h>
|
|
|
+ #ifdef HAVE_VFORK_H
|
|
|
+ #include <vfork.h>
|
|
|
+@@ -115,7 +115,7 @@
|
|
|
+ extern char **genget();
|
|
|
+ extern int Ambiguous();
|
|
|
+
|
|
|
+-static call();
|
|
|
++static call(void *va_alist, ...);
|
|
|
+
|
|
|
+ typedef struct {
|
|
|
+ char *name; /* command name */
|
|
|
+@@ -2698,8 +2698,7 @@
|
|
|
+
|
|
|
+ /*VARARGS1*/
|
|
|
+ static
|
|
|
+-call(va_alist)
|
|
|
+- va_dcl
|
|
|
++call(void *va_alist, ...)
|
|
|
+ {
|
|
|
+ va_list ap;
|
|
|
+ typedef int (*intrtn_t)();
|
|
|
+@@ -2707,8 +2706,8 @@
|
|
|
+ char *args[100];
|
|
|
+ int argno = 0;
|
|
|
+
|
|
|
+- va_start(ap);
|
|
|
+- routine = (va_arg(ap, intrtn_t));
|
|
|
++ va_start(ap, va_alist);
|
|
|
++ routine = (intrtn_t) va_alist;
|
|
|
+ while ((args[argno++] = va_arg(ap, char *)) != 0) {
|
|
|
+ ;
|
|
|
+ }
|