Commit 5109e9ea authored by Per Cederqvist's avatar Per Cederqvist

Include more files, now that isc.h and kom-types.h no longer includes

any files.
parent 0d0a48e1
/* /*
* $Id: misc-parser.c,v 0.6 1993/10/14 22:35:31 ceder Exp $ * $Id: misc-parser.c,v 0.7 1993/10/18 12:26:51 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -47,14 +47,15 @@ ...@@ -47,14 +47,15 @@
* even if so stated. * even if so stated.
*/ */
static char *rcsid = "$Id: misc-parser.c,v 0.6 1993/10/14 22:35:31 ceder Exp $"; static char *rcsid = "$Id: misc-parser.c,v 0.7 1993/10/18 12:26:51 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
#ifdef SERVER #include <sys/types.h>
# include <sys/types.h> #include <time.h>
#endif
#include "s-string.h"
#include "misc-types.h"
#include "misc-parser.h" #include "misc-parser.h"
#define EXPORT #define EXPORT
......
...@@ -15,6 +15,13 @@ ...@@ -15,6 +15,13 @@
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <time.h>
#include "isc.h" #include "isc.h"
#include "intern.h" #include "intern.h"
......
...@@ -9,12 +9,16 @@ ...@@ -9,12 +9,16 @@
*/ */
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#else #else
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <time.h> #include <time.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/socket.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
......
...@@ -9,6 +9,12 @@ ...@@ -9,6 +9,12 @@
*/ */
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <time.h>
#include "isc.h" #include "isc.h"
#include "intern.h" #include "intern.h"
......
...@@ -15,7 +15,12 @@ ...@@ -15,7 +15,12 @@
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/socket.h>
#ifndef NULL #ifndef NULL
# include <stdio.h> # include <stdio.h>
#endif #endif
......
...@@ -12,12 +12,18 @@ ...@@ -12,12 +12,18 @@
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#endif #endif
#ifndef NULL #ifndef NULL
# include <stdio.h> # include <stdio.h>
#endif #endif
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "isc.h" #include "isc.h"
#include "intern.h" #include "intern.h"
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <errno.h> #include <errno.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> #include <string.h>
...@@ -21,6 +24,7 @@ ...@@ -21,6 +24,7 @@
#ifndef NULL #ifndef NULL
# include <stdio.h> # include <stdio.h>
#endif #endif
#include <sys/socket.h>
#include "isc.h" #include "isc.h"
#include "intern.h" #include "intern.h"
......
...@@ -11,9 +11,15 @@ ...@@ -11,9 +11,15 @@
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#ifndef NULL #ifndef NULL
# include <stdio.h> # include <stdio.h>
#endif #endif
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "isc.h" #include "isc.h"
#include "intern.h" #include "intern.h"
......
...@@ -13,10 +13,14 @@ ...@@ -13,10 +13,14 @@
*/ */
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <fcntl.h> #include <fcntl.h>
#ifndef NULL #ifndef NULL
# include <stdio.h> # include <stdio.h>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h>
#include <errno.h> #include <errno.h>
#include <netdb.h> #include <netdb.h>
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
...@@ -24,8 +25,11 @@ ...@@ -24,8 +25,11 @@
#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 <fcntl.h> #include <fcntl.h>
#include <sys/file.h>
#include "isc.h" #include "isc.h"
#include "intern.h" #include "intern.h"
......
...@@ -12,6 +12,13 @@ ...@@ -12,6 +12,13 @@
#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 <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "isc.h" #include "isc.h"
......
...@@ -15,12 +15,16 @@ ...@@ -15,12 +15,16 @@
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <ctype.h> #include <ctype.h>
#include <sys/types.h> #include <sys/types.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
......
...@@ -16,11 +16,15 @@ ...@@ -16,11 +16,15 @@
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
#endif #endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <ctype.h> #include <ctype.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
......
/* /*
* $Id: admin.c,v 0.10 1993/10/14 09:10:43 ceder Exp $ * $Id: admin.c,v 0.11 1993/10/18 12:28:50 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* Administrative calls. * Administrative calls.
*/ */
static char *rcsid = "$Id: admin.c,v 0.10 1993/10/14 09:10:43 ceder Exp $"; static char *rcsid = "$Id: admin.c,v 0.11 1993/10/18 12:28:50 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -37,8 +37,11 @@ USE(rcsid); ...@@ -37,8 +37,11 @@ USE(rcsid);
#ifdef HAVE_STDARG_H #ifdef HAVE_STDARG_H
# include <stdarg.h> # include <stdarg.h>
#endif #endif
#include <sys/types.h>
#include <time.h>
#include "misc-types.h" #include "misc-types.h"
#include "s-string.h"
#include "kom-types.h" #include "kom-types.h"
#include "manipulate.h" #include "manipulate.h"
#include "com.h" #include "com.h"
......
/* /*
* $Id: conference.c,v 0.22 1993/10/16 17:44:44 ceder Exp $ * $Id: conference.c,v 0.23 1993/10/18 12:28:55 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* All atomic calls that deals with conferences. * All atomic calls that deals with conferences.
*/ */
static char *rcsid = "$Id: conference.c,v 0.22 1993/10/16 17:44:44 ceder Exp $"; static char *rcsid = "$Id: conference.c,v 0.23 1993/10/18 12:28:55 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -39,7 +39,9 @@ USE(rcsid); ...@@ -39,7 +39,9 @@ USE(rcsid);
#ifdef HAVE_STDARG_H #ifdef HAVE_STDARG_H
# include <stdarg.h> # include <stdarg.h>
#endif #endif
#include <sys/types.h>
#include "s-string.h"
#include "kom-types.h" #include "kom-types.h"
#include "log.h" #include "log.h"
#include "services.h" #include "services.h"
......
/* /*
* $Id: connections.c,v 0.29 1993/10/16 17:45:02 ceder Exp $ * $Id: connections.c,v 0.30 1993/10/18 12:29:02 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* Created by Willf|r 31/3-90. Mostly written by ceder. * Created by Willf|r 31/3-90. Mostly written by ceder.
*/ */
static char *rcsid = "$Id: connections.c,v 0.29 1993/10/16 17:45:02 ceder Exp $"; static char *rcsid = "$Id: connections.c,v 0.30 1993/10/18 12:29:02 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -55,8 +55,13 @@ USE(rcsid); ...@@ -55,8 +55,13 @@ USE(rcsid);
#ifndef HAVE_DIFFTIME #ifndef HAVE_DIFFTIME
# include "tmp-difftime.h" # include "tmp-difftime.h"
#endif #endif
#include <sys/socket.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include "misc-types.h" #include "misc-types.h"
#include "s-string.h"
#include "kom-types.h" #include "kom-types.h"
#include "debug.h" #include "debug.h"
#include "isc-interface.h" #include "isc-interface.h"
......
/* /*
* $Id: dbck-cache.c,v 0.16 1993/10/16 17:45:27 ceder Exp $ * $Id: dbck-cache.c,v 0.17 1993/10/18 12:29:07 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
* Also save time as a time_t instead of a struct tm. * Also save time as a time_t instead of a struct tm.
*/ */
static char *rcsid = "$Id: dbck-cache.c,v 0.16 1993/10/16 17:45:27 ceder Exp $"; static char *rcsid = "$Id: dbck-cache.c,v 0.17 1993/10/18 12:29:07 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -64,6 +64,7 @@ USE(rcsid); ...@@ -64,6 +64,7 @@ USE(rcsid);
#include "exp.h" #include "exp.h"
#include "misc-types.h" #include "misc-types.h"
#include "s-string.h"
#include "kom-types.h" #include "kom-types.h"
#include "kom-errno.h" #include "kom-errno.h"
#include "cache.h" #include "cache.h"
......
/* /*
* $Id: dbck.c,v 0.18 1993/10/16 17:45:49 ceder Exp $ * $Id: dbck.c,v 0.19 1993/10/18 12:29:14 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* Author: Per Cederqvist. * Author: Per Cederqvist.
*/ */
static char *rcsid = "$Id: dbck.c,v 0.18 1993/10/16 17:45:49 ceder Exp $"; static char *rcsid = "$Id: dbck.c,v 0.19 1993/10/18 12:29:14 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -39,8 +39,11 @@ USE(rcsid); ...@@ -39,8 +39,11 @@ USE(rcsid);
#ifdef HAVE_STDARG_H #ifdef HAVE_STDARG_H
# include <stdarg.h> # include <stdarg.h>
#endif #endif
#include <time.h>
#include <sys/types.h>
#include "misc-types.h" #include "misc-types.h"
#include "s-string.h"
#include "kom-types.h" #include "kom-types.h"
#include "tmp-limits.h" #include "tmp-limits.h"
#include "lyskomd.h" #include "lyskomd.h"
...@@ -362,7 +365,7 @@ check_misc_infos(Text_no tno, ...@@ -362,7 +365,7 @@ check_misc_infos(Text_no tno,
c = cached_get_conf_stat (group.recipient); c = cached_get_conf_stat (group.recipient);
if ( c == NULL && group.recipient == 0 ) if ( c == NULL && group.recipient == 0 )
{ {
log ("Conference 0 is recipient to text %lu.\n", (u_long)tno); log ("Conference 0 is recipient to text %lu.\n", (unsigned long)tno);
if (rflag || confirm("Repair by deleting misc_item? ")) if (rflag || confirm("Repair by deleting misc_item? "))
{ {
delete_misc(tstat, previous); delete_misc(tstat, previous);
...@@ -384,18 +387,18 @@ check_misc_infos(Text_no tno, ...@@ -384,18 +387,18 @@ check_misc_infos(Text_no tno,
if ( group.local_no < c->texts.first_local_no ) if ( group.local_no < c->texts.first_local_no )
{ {
log("Text %lu: Recipient %lu<%lu> loc_no is less than %lu\n", log("Text %lu: Recipient %lu<%lu> loc_no is less than %lu\n",
(u_long)tno, (u_long)group.recipient, (unsigned long)tno, (unsigned long)group.recipient,
(u_long)group.local_no, (unsigned long)group.local_no,
(u_long)c->texts.first_local_no); (unsigned long)c->texts.first_local_no);
error++; error++;
} }
else if ( c->texts.first_local_no + c->texts.no_of_texts - 1 else if ( c->texts.first_local_no + c->texts.no_of_texts - 1
< group.local_no ) < group.local_no )
{ {
log("Text %lu: Recipient %lu<%lu> loc_no > %lu\n", log("Text %lu: Recipient %lu<%lu> loc_no > %lu\n",
(u_long)tno, (u_long)group.recipient, (unsigned long)tno, (unsigned long)group.recipient,
(u_long)group.local_no, (unsigned long)group.local_no,
(u_long)(c->texts.first_local_no (unsigned long)(c->texts.first_local_no
+ c->texts.no_of_texts - 1)); + c->texts.no_of_texts - 1));
error++; error++;
} }
...@@ -403,10 +406,10 @@ check_misc_infos(Text_no tno, ...@@ -403,10 +406,10 @@ check_misc_infos(Text_no tno,
- c->texts.first_local_no] != tno ) - c->texts.first_local_no] != tno )
{ {
log("Text %lu: Recipient %lu<%lu>: %s to %lu.\n", log("Text %lu: Recipient %lu<%lu>: %s to %lu.\n",
(u_long)tno, (u_long)group.recipient, (unsigned long)tno, (unsigned long)group.recipient,
(u_long)group.local_no, (unsigned long)group.local_no,
"that local number is mapped", "that local number is mapped",
(u_long)c->texts.texts[group.local_no (unsigned long)c->texts.texts[group.local_no
- c->texts.first_local_no]); - c->texts.first_local_no]);
error++; error++;
} }
...@@ -418,7 +421,7 @@ check_misc_infos(Text_no tno, ...@@ -418,7 +421,7 @@ check_misc_infos(Text_no tno,
if ( c == NULL && group.cc_recipient == 0 ) if ( c == NULL && group.cc_recipient == 0 )
{ {
log ("Conference 0 is cc_recipient to text %lu.\n", log ("Conference 0 is cc_recipient to text %lu.\n",
(u_long)tno); (unsigned long)tno);
if (rflag || confirm("Repair by deleting misc_item? ")) if (rflag || confirm("Repair by deleting misc_item? "))
{ {