summaryrefslogtreecommitdiffstats
path: root/innbbsd/bbslink.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-05 13:30:02 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-05 13:30:02 +0800
commit980df4d9684121dca6964247784ea7983f6ea4c4 (patch)
tree0c5fb0ec3002b8395d82de47a514bf314ab35e65 /innbbsd/bbslink.c
parent332d5e7882804269784b976f1cb468d69c21af37 (diff)
downloadpttbbs-980df4d9684121dca6964247784ea7983f6ea4c4.tar
pttbbs-980df4d9684121dca6964247784ea7983f6ea4c4.tar.gz
pttbbs-980df4d9684121dca6964247784ea7983f6ea4c4.tar.bz2
pttbbs-980df4d9684121dca6964247784ea7983f6ea4c4.tar.lz
pttbbs-980df4d9684121dca6964247784ea7983f6ea4c4.tar.xz
pttbbs-980df4d9684121dca6964247784ea7983f6ea4c4.tar.zst
pttbbs-980df4d9684121dca6964247784ea7983f6ea4c4.zip
replace varvars.h by stdarg.h
(because gcc 3.3 no longer support varvars.h) git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@821 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/bbslink.c')
-rw-r--r--innbbsd/bbslink.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/innbbsd/bbslink.c b/innbbsd/bbslink.c
index 300f3f7d..1c0b1565 100644
--- a/innbbsd/bbslink.c
+++ b/innbbsd/bbslink.c
@@ -1,9 +1,9 @@
#if defined( LINUX )
# include "innbbsconf.h"
# include "bbslib.h"
-# include <varargs.h>
+# include <stdarg.h>
#else
-# include <varargs.h>
+# include <stdarg.h>
# include "innbbsconf.h"
# include "bbslib.h"
#endif
@@ -248,15 +248,12 @@ bbslink_get_lock(file)
int
-tcpcommand(va_alist)
-va_dcl
+tcpcommand(char *fmt, ...)
{
va_list ap;
- register char *fmt;
char *ptr;
- va_start(ap);
- fmt = va_arg(ap, char *);
+ va_start(ap, fmt);
vfprintf(NNTPwfp, fmt, ap);
fprintf(NNTPwfp, "\r\n");
fflush(NNTPwfp);