Commit cf88c425 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Don't include <stdarg.h>.

parent 8f2bf9af
/* /*
* $Id: admin.c,v 0.39 1999/05/31 12:17:01 byers Exp $ * $Id: admin.c,v 0.40 1999/06/03 22:11:04 ceder Exp $
* Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association. * Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -33,15 +33,12 @@ ...@@ -33,15 +33,12 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: admin.c,v 0.39 1999/05/31 12:17:01 byers Exp $"; rcsid = "$Id: admin.c,v 0.40 1999/06/03 22:11:04 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
#include <stdio.h> #include <stdio.h>
#include <setjmp.h> #include <setjmp.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <time.h> #include <time.h>
#include <malloc.h> #include <malloc.h>
......
/* /*
* $Id: conf-file.c,v 1.16 1999/05/24 09:34:20 ceder Exp $ * $Id: conf-file.c,v 1.17 1999/06/03 22:11:05 ceder Exp $
* Copyright (C) 1994-1995, 1998-1999 Lysator Academic Computer Association. * Copyright (C) 1994-1995, 1998-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
static const char * static const char *
rcsid = "$Id: conf-file.c,v 1.16 1999/05/24 09:34:20 ceder Exp $"; rcsid = "$Id: conf-file.c,v 1.17 1999/06/03 22:11:05 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -55,7 +55,6 @@ USE(rcsid); ...@@ -55,7 +55,6 @@ USE(rcsid);
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
#include <stdarg.h>
#include "s-string.h" #include "s-string.h"
#include "server/smalloc.h" #include "server/smalloc.h"
......
/* /*
* $Id: conference.c,v 0.51 1999/05/31 12:17:05 byers Exp $ * $Id: conference.c,v 0.52 1999/06/03 22:11:05 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
static const char * static const char *
rcsid = "$Id: conference.c,v 0.51 1999/05/31 12:17:05 byers Exp $"; rcsid = "$Id: conference.c,v 0.52 1999/06/03 22:11:05 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -43,9 +43,6 @@ USE(rcsid); ...@@ -43,9 +43,6 @@ USE(rcsid);
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include <setjmp.h> #include <setjmp.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include "s-string.h" #include "s-string.h"
......
/* /*
* $Id: connections.c,v 0.63 1999/05/24 09:34:21 ceder Exp $ * $Id: connections.c,v 0.64 1999/06/03 22:11:06 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: connections.c,v 0.63 1999/05/24 09:34:21 ceder Exp $"; rcsid = "$Id: connections.c,v 0.64 1999/06/03 22:11:06 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -59,9 +59,6 @@ USE(rcsid); ...@@ -59,9 +59,6 @@ USE(rcsid);
#endif #endif
#endif #endif
#include <sys/socket.h> #include <sys/socket.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <signal.h> #include <signal.h>
#include "ldifftime.h" #include "ldifftime.h"
......
/* /*
* $Id: dbck-cache.c,v 0.42 1999/05/24 14:28:57 ceder Exp $ * $Id: dbck-cache.c,v 0.43 1999/06/03 22:11:06 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
static const char * static const char *
rcsid = "$Id: dbck-cache.c,v 0.42 1999/05/24 14:28:57 ceder Exp $"; rcsid = "$Id: dbck-cache.c,v 0.43 1999/06/03 22:11:06 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -62,9 +62,6 @@ USE(rcsid); ...@@ -62,9 +62,6 @@ USE(rcsid);
#ifdef TIME_SYNC #ifdef TIME_SYNC
# include <sys/resource.h> # include <sys/resource.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include "ldifftime.h" #include "ldifftime.h"
#include "exp.h" #include "exp.h"
......
/* /*
* $Id: internal-connections.c,v 0.40 1999/05/31 12:17:07 byers Exp $ * $Id: internal-connections.c,v 0.41 1999/06/03 22:11:07 ceder Exp $
* Copyright (C) 1991-1994, 1996-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1994, 1996-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
static const char * static const char *
rcsid = "$Id: internal-connections.c,v 0.40 1999/05/31 12:17:07 byers Exp $"; rcsid = "$Id: internal-connections.c,v 0.41 1999/06/03 22:11:07 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -43,9 +43,6 @@ USE(rcsid); ...@@ -43,9 +43,6 @@ USE(rcsid);
#include <time.h> #include <time.h>
#include <setjmp.h> #include <setjmp.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include "exp.h" #include "exp.h"
#include "s-string.h" #include "s-string.h"
......
/* /*
* $Id: membership.c,v 0.46 1999/05/31 12:17:09 byers Exp $ * $Id: membership.c,v 0.47 1999/06/03 22:11:07 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#define DEBUG_MARK_AS_READ #define DEBUG_MARK_AS_READ
static const char * static const char *
rcsid = "$Id: membership.c,v 0.46 1999/05/31 12:17:09 byers Exp $"; rcsid = "$Id: membership.c,v 0.47 1999/06/03 22:11:07 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -48,11 +48,6 @@ USE(rcsid); ...@@ -48,11 +48,6 @@ USE(rcsid);
#endif #endif
#include <time.h> #include <time.h>
#include <setjmp.h> #include <setjmp.h>
#ifdef DEBUG_MARK_AS_READ
# ifdef HAVE_STDARG_H
# include <stdarg.h>
# endif
#endif
#include <sys/types.h> #include <sys/types.h>
#include "misc-types.h" #include "misc-types.h"
......
/* /*
* $Id: memory.c,v 0.35 1999/05/24 13:47:06 byers Exp $ * $Id: memory.c,v 0.36 1999/06/03 22:11:08 ceder Exp $
* Copyright (C) 1991-1994, 1996-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1994, 1996-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: memory.c,v 0.35 1999/05/24 13:47:06 byers Exp $"; rcsid = "$Id: memory.c,v 0.36 1999/06/03 22:11:08 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -41,9 +41,6 @@ USE(rcsid); ...@@ -41,9 +41,6 @@ USE(rcsid);
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <time.h> #include <time.h>
......
/* /*
* $Id: person.c,v 0.52 1999/05/31 12:17:10 byers Exp $ * $Id: person.c,v 0.53 1999/06/03 22:11:08 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: person.c,v 0.52 1999/05/31 12:17:10 byers Exp $"; rcsid = "$Id: person.c,v 0.53 1999/06/03 22:11:08 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -53,9 +53,6 @@ USE(rcsid); ...@@ -53,9 +53,6 @@ USE(rcsid);
#endif #endif
#include <setjmp.h> #include <setjmp.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#ifdef HAVE_CRYPT_H #ifdef HAVE_CRYPT_H
# include <crypt.h> # include <crypt.h>
#endif #endif
......
/* /*
* $Id: prot-a-parse.c,v 0.40 1999/05/24 09:34:32 ceder Exp $ * $Id: prot-a-parse.c,v 0.41 1999/06/03 22:11:09 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: prot-a-parse.c,v 0.40 1999/05/24 09:34:32 ceder Exp $"; rcsid = "$Id: prot-a-parse.c,v 0.41 1999/06/03 22:11:09 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -44,9 +44,6 @@ USE(rcsid); ...@@ -44,9 +44,6 @@ USE(rcsid);
#include <time.h> #include <time.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
......
/* /*
* $Id: ram-output.c,v 0.34 1999/05/24 17:10:00 ceder Exp $ * $Id: ram-output.c,v 0.35 1999/06/03 22:11:09 ceder Exp $
* Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association. * Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -39,15 +39,12 @@ ...@@ -39,15 +39,12 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: ram-output.c,v 0.34 1999/05/24 17:10:00 ceder Exp $"; rcsid = "$Id: ram-output.c,v 0.35 1999/06/03 22:11:09 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include "s-string.h" #include "s-string.h"
......
/* /*
* $Id: ram-parse.c,v 0.37 1999/05/24 13:58:55 ceder Exp $ * $Id: ram-parse.c,v 0.38 1999/06/03 22:11:10 ceder Exp $
* Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association. * Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: ram-parse.c,v 0.37 1999/05/24 13:58:55 ceder Exp $"; rcsid = "$Id: ram-parse.c,v 0.38 1999/06/03 22:11:10 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -45,9 +45,6 @@ USE(rcsid); ...@@ -45,9 +45,6 @@ USE(rcsid);
# include <string.h> # include <string.h>
#endif #endif
#include <time.h> #include <time.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include "s-string.h" #include "s-string.h"
......
/* /*
* $Id: ramkomd.c,v 0.87 1999/05/24 09:34:36 ceder Exp $ * $Id: ramkomd.c,v 0.88 1999/06/03 22:11:10 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: ramkomd.c,v 0.87 1999/05/24 09:34:36 ceder Exp $"; rcsid = "$Id: ramkomd.c,v 0.88 1999/06/03 22:11:10 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -53,9 +53,6 @@ USE(rcsid); ...@@ -53,9 +53,6 @@ USE(rcsid);
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
......
/* /*
* $Id: regex-match.c,v 1.22 1999/05/31 12:17:11 byers Exp $ * $Id: regex-match.c,v 1.23 1999/06/03 22:11:12 ceder Exp $
* Copyright (C) 1992-1999 Lysator Academic Computer Association. * Copyright (C) 1992-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -33,16 +33,13 @@ ...@@ -33,16 +33,13 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: regex-match.c,v 1.22 1999/05/31 12:17:11 byers Exp $"; rcsid = "$Id: regex-match.c,v 1.23 1999/06/03 22:11:12 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
#include <stdio.h> #include <stdio.h>
#include <setjmp.h> #include <setjmp.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <time.h> #include <time.h>
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
...@@ -90,6 +87,9 @@ lookup_regexp (Connection *conn, ...@@ -90,6 +87,9 @@ lookup_regexp (Connection *conn,
} }
else else
{ {
/* regfree() uses free() to free this memory. The match will
be performed without the translation table if strdup fails.
That is an acceptable fail-safe mode. */
pat_buf.translate = strdup(DEFAULT_COLLAT_TAB); pat_buf.translate = strdup(DEFAULT_COLLAT_TAB);
} }
pat_buf.fastmap = 0; pat_buf.fastmap = 0;
......
/* /*
* $Id: rfc931.c,v 1.19 1999/05/24 09:34:37 ceder Exp $ * $Id: rfc931.c,v 1.20 1999/06/03 22:11:12 ceder Exp $
* Copyright (C) 1991-1994, 1998-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1994, 1998-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -41,9 +41,6 @@ ...@@ -41,9 +41,6 @@
#ifdef HAVE_LIBAUTHUSER #ifdef HAVE_LIBAUTHUSER
# include <authuser.h> # include <authuser.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <time.h> #include <time.h>
......
/* /*
* $Id: send-async.c,v 0.30 1999/05/31 12:17:12 byers Exp $ * $Id: send-async.c,v 0.31 1999/06/03 22:11:12 ceder Exp $
* Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association. * Copyright (C) 1991, 1993-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -34,15 +34,12 @@ ...@@ -34,15 +34,12 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: send-async.c,v 0.30 1999/05/31 12:17:12 byers Exp $"; rcsid = "$Id: send-async.c,v 0.31 1999/06/03 22:11:12 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
#include <stdio.h> #include <stdio.h>
#include <setjmp.h> #include <setjmp.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <time.h> #include <time.h>
#include <sys/types.h> #include <sys/types.h>
......
/* /*
* $Id: server-config.c,v 0.64 1999/05/31 12:17:13 byers Exp $ * $Id: server-config.c,v 0.65 1999/06/03 22:11:12 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: server-config.c,v 0.64 1999/05/31 12:17:13 byers Exp $"; rcsid = "$Id: server-config.c,v 0.65 1999/06/03 22:11:12 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -48,7 +48,6 @@ USE(rcsid); ...@@ -48,7 +48,6 @@ USE(rcsid);
# include <string.h> # include <string.h>
#endif #endif
#include <time.h> #include <time.h>
#include <stdarg.h>
#include <assert.h> #include <assert.h>
#include <setjmp.h> #include <setjmp.h>
......
/* /*
* $Id: session.c,v 0.50 1999/05/31 12:17:14 byers Exp $ * $Id: session.c,v 0.51 1999/06/03 22:11:13 ceder Exp $
* Copyright (C) 1991-1994, 1996-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1994, 1996-1999 Lysator Academic Computer Association.
*