s/varargs.h/stdarg.h/g
Submitted by: chinsan <chinsan@mail2000.com.tw> Approved by: maintainer.
This commit is contained in:
parent
db0b512f74
commit
b76bd37c22
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=130954
5 changed files with 74 additions and 11 deletions
|
@ -3,20 +3,20 @@
|
|||
# Whom: Edward Chuang <edwardc@firebird.org.tw>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= firebird
|
||||
PORTVERSION= 3.0R
|
||||
CATEGORIES= chinese net
|
||||
MASTER_SITES= ftp://ftp4.firebird.org.tw/Network/BBS/Firebird/
|
||||
PORTNAME= firebird
|
||||
PORTVERSION= 3.0R
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= chinese net
|
||||
MASTER_SITES= ftp://ftp4.firebird.org.tw/Network/BBS/Firebird/
|
||||
DISTNAME= 3.0-RELEASE
|
||||
|
||||
DISTNAME= 3.0-RELEASE
|
||||
|
||||
MAINTAINER= edwardc@firebird.org.tw
|
||||
MAINTAINER= edwardc@firebird.org.tw
|
||||
COMMENT= A Common BBS Server with its own customized INN News Server
|
||||
|
||||
WRKSRC= ${WRKDIR}/bbs/bbssrc
|
||||
GNU_CONFIGURE= yes
|
||||
USE_BZIP2= yes
|
||||
IS_INTERACTIVE= yes
|
||||
WRKSRC= ${WRKDIR}/bbs/bbssrc
|
||||
GNU_CONFIGURE= yes
|
||||
USE_BZIP2= yes
|
||||
IS_INTERACTIVE= yes
|
||||
|
||||
pre-install:
|
||||
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
|
|
12
chinese/firebird/files/patch-bbs.c
Normal file
12
chinese/firebird/files/patch-bbs.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- src/bbs.c.orig Tue Mar 8 02:34:20 2005
|
||||
+++ src/bbs.c Tue Mar 8 02:33:11 2005
|
||||
@@ -25,8 +25,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
-"@(#) Copyright (c) 1999,2000\n
|
||||
- Firebird BBS Project. All rights reserved. http://www.firebird.org.tw\n";
|
||||
+"@(#) Copyright (c) 1999,2000\n Firebird BBS Project. All rights reserved. http://www.firebird.org.tw\n";
|
||||
#endif
|
||||
#include "bbs.h"
|
||||
#include <time.h>
|
11
chinese/firebird/files/patch-dlm.c
Normal file
11
chinese/firebird/files/patch-dlm.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- lib/libBBS/dlm.c.orig Tue Mar 8 02:12:24 2005
|
||||
+++ lib/libBBS/dlm.c Tue Mar 8 02:12:35 2005
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#ifndef BBS
|
||||
#include <dlfcn.h>
|
||||
- #include <varargs.h>
|
||||
+ #include <stdarg.h>
|
||||
#include <strings.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
11
chinese/firebird/files/patch-paging.c
Normal file
11
chinese/firebird/files/patch-paging.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/SO/paging.c.orig Fri Sep 22 23:14:03 2000
|
||||
+++ src/SO/paging.c Tue Mar 8 03:24:43 2005
|
||||
@@ -351,7 +351,7 @@
|
||||
case '0':
|
||||
return 0;
|
||||
default:
|
||||
-
|
||||
+ return 0;
|
||||
}
|
||||
}
|
||||
|
29
chinese/firebird/files/patch-screen.c
Normal file
29
chinese/firebird/files/patch-screen.c
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- src/screen.c.orig Sat Jan 15 09:45:29 2000
|
||||
+++ src/screen.c Tue Mar 8 03:06:59 2005
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "screen.h"
|
||||
#include "edit.h"
|
||||
#include <sys/param.h>
|
||||
-#include <varargs.h>
|
||||
+#include <stdarg.h>
|
||||
|
||||
extern char clearbuf[];
|
||||
extern char cleolbuf[];
|
||||
@@ -538,14 +538,13 @@
|
||||
int dec[] = {1000000000, 100000000, 10000000, 1000000, 100000, 10000, 1000, 100, 10, 1};
|
||||
|
||||
void
|
||||
-prints(va_alist)
|
||||
-va_dcl
|
||||
+prints(char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
- register char *fmt;
|
||||
+ register char;
|
||||
char *bp;
|
||||
register int i, count, hd, indx;
|
||||
- va_start(ap);
|
||||
+ va_start(ap, fmt);
|
||||
fmt = va_arg(ap, char *);
|
||||
while (*fmt != '\0') {
|
||||
if (*fmt == '%') {
|
Loading…
Reference in a new issue