aboutsummaryrefslogtreecommitdiff
path: root/security/op/files/patch-main.c
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-10-15 13:03:16 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-10-15 13:03:16 +0000
commit7ed835d4093d468de96914b7bd197065ff7e4e00 (patch)
treed78234d3bf2d33f003c9765c0414437ee609d072 /security/op/files/patch-main.c
parent3287007480524a4939db658fc89a2321704e10ce (diff)
downloadports-7ed835d4093d468de96914b7bd197065ff7e4e00.tar.gz
ports-7ed835d4093d468de96914b7bd197065ff7e4e00.zip
unbreak port by eliminating varargs.h
informed maintainer.
Notes
Notes: svn path=/head/; revision=91318
Diffstat (limited to 'security/op/files/patch-main.c')
-rw-r--r--security/op/files/patch-main.c34
1 files changed, 30 insertions, 4 deletions
diff --git a/security/op/files/patch-main.c b/security/op/files/patch-main.c
index 293434234e76..5d449b8b439f 100644
--- a/security/op/files/patch-main.c
+++ b/security/op/files/patch-main.c
@@ -1,6 +1,32 @@
---- main.c.orig Tue Sep 9 01:24:31 2003
-+++ main.c Tue Sep 9 01:29:26 2003
-@@ -448,29 +448,17 @@
+--- main.c.orig Wed Oct 15 05:58:41 2003
++++ main.c Wed Oct 15 06:02:22 2003
+@@ -9,7 +9,7 @@
+ /* +-------------------------------------------------------------------+ */
+
+ #include <stdio.h>
+-#include <varargs.h>
++#include <stdarg.h>
+ #include <syslog.h>
+ #include <pwd.h>
+ #include <grp.h>
+@@ -170,14 +170,11 @@
+ return Go(new, num, argc, argv);
+ }
+
+-fatal(va_alist)
+- va_dcl
++fatal(char *s,...)
+ {
+ va_list ap;
+- char *s;
+
+- va_start(ap);
+- s = va_arg(ap, char *);
++ va_start(ap,s);
+ vfprintf(stderr, s, ap);
+ fputc('\n', stderr);
+ va_end(ap);
+@@ -448,29 +445,17 @@
char *cp, *np;
struct passwd *pw;
struct group *gr;
@@ -32,7 +58,7 @@
gidset[ngroups++] = gr->gr_gid;
}
if (ngroups == 0)
-@@ -533,6 +521,18 @@
+@@ -533,6 +518,18 @@
new_envp[curenv++] = environ[i];
}
new_envp[curenv] = NULL;