Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
5109e9ea
Commit
5109e9ea
authored
Oct 18, 1993
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include more files, now that isc.h and kom-types.h no longer includes
any files.
parent
0d0a48e1
Changes
41
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
388 additions
and
254 deletions
+388
-254
src/libraries/libcommon/misc-parser.c
src/libraries/libcommon/misc-parser.c
+6
-5
src/libraries/libisc-new/src/isc_abort.c
src/libraries/libisc-new/src/isc_abort.c
+7
-0
src/libraries/libisc-new/src/isc_alloc.c
src/libraries/libisc-new/src/isc_alloc.c
+4
-0
src/libraries/libisc-new/src/isc_event.c
src/libraries/libisc-new/src/isc_event.c
+1
-0
src/libraries/libisc-new/src/isc_handler.c
src/libraries/libisc-new/src/isc_handler.c
+6
-0
src/libraries/libisc-new/src/isc_master.c
src/libraries/libisc-new/src/isc_master.c
+5
-0
src/libraries/libisc-new/src/isc_message.c
src/libraries/libisc-new/src/isc_message.c
+6
-0
src/libraries/libisc-new/src/isc_output.c
src/libraries/libisc-new/src/isc_output.c
+4
-0
src/libraries/libisc-new/src/isc_queue.c
src/libraries/libisc-new/src/isc_queue.c
+6
-0
src/libraries/libisc-new/src/isc_session.c
src/libraries/libisc-new/src/isc_session.c
+4
-0
src/libraries/libisc-new/src/isc_socket.c
src/libraries/libisc-new/src/isc_socket.c
+5
-1
src/libraries/libisc-new/src/isc_stdout.c
src/libraries/libisc-new/src/isc_stdout.c
+7
-0
src/libraries/libisc-new/src/isc_tcp.c
src/libraries/libisc-new/src/isc_tcp.c
+4
-0
src/libraries/libisc-new/src/isc_udp.c
src/libraries/libisc-new/src/isc_udp.c
+4
-0
src/server/admin.c
src/server/admin.c
+5
-2
src/server/conference.c
src/server/conference.c
+4
-2
src/server/connections.c
src/server/connections.c
+7
-2
src/server/dbck-cache.c
src/server/dbck-cache.c
+3
-2
src/server/dbck.c
src/server/dbck.c
+75
-72
src/server/disk-end-of-atomic.c
src/server/disk-end-of-atomic.c
+3
-2
src/server/isc-parse.c
src/server/isc-parse.c
+5
-2
src/server/kom-types.c
src/server/kom-types.c
+7
-2
src/server/manipulate.h
src/server/manipulate.h
+8
-8
src/server/membership.c
src/server/membership.c
+26
-24
src/server/memory.c
src/server/memory.c
+5
-2
src/server/mux-parse.c
src/server/mux-parse.c
+7
-2
src/server/mux.c
src/server/mux.c
+5
-2
src/server/prot-a-output.c
src/server/prot-a-output.c
+99
-93
src/server/prot-a-parse-arg-c.awk
src/server/prot-a-parse-arg-c.awk
+3
-2
src/server/prot-a-send-async.c
src/server/prot-a-send-async.c
+9
-2
src/server/prot-a.c
src/server/prot-a.c
+10
-3
src/server/ram-output.c
src/server/ram-output.c
+3
-2
src/server/ram-parse.c
src/server/ram-parse.c
+3
-2
src/server/ram-smalloc.c
src/server/ram-smalloc.c
+3
-2
src/server/ramkomd.c
src/server/ramkomd.c
+5
-3
src/server/regex-match.c
src/server/regex-match.c
+3
-2
src/server/rfc931.c
src/server/rfc931.c
+6
-5
src/server/send-async.c
src/server/send-async.c
+5
-2
src/server/simple-cache.c
src/server/simple-cache.c
+3
-2
src/server/text-garb.c
src/server/text-garb.c
+3
-2
src/server/text.c
src/server/text.c
+4
-2
No files found.
src/libraries/libcommon/misc-parser.c
View file @
5109e9ea
/*
* $Id: misc-parser.c,v 0.
6
1993/10/1
4 22:35:3
1 ceder Exp $
* $Id: misc-parser.c,v 0.
7
1993/10/1
8 12:26:5
1 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -47,14 +47,15 @@
* even if so stated.
*/
static
char
*
rcsid
=
"$Id: misc-parser.c,v 0.
6
1993/10/1
4 22:35:3
1 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: misc-parser.c,v 0.
7
1993/10/1
8 12:26:5
1 ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
#ifdef SERVER
# include <sys/types.h>
#endif
#include <sys/types.h>
#include <time.h>
#include "s-string.h"
#include "misc-types.h"
#include "misc-parser.h"
#define EXPORT
...
...
src/libraries/libisc-new/src/isc_abort.c
View file @
5109e9ea
...
...
@@ -15,6 +15,13 @@
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <time.h>
#include "isc.h"
#include "intern.h"
...
...
src/libraries/libisc-new/src/isc_alloc.c
View file @
5109e9ea
...
...
@@ -9,12 +9,16 @@
*/
#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#else
...
...
src/libraries/libisc-new/src/isc_event.c
View file @
5109e9ea
...
...
@@ -21,6 +21,7 @@
#include <time.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <errno.h>
#ifdef HAVE_STDDEF_H
# include <stddef.h>
...
...
src/libraries/libisc-new/src/isc_handler.c
View file @
5109e9ea
...
...
@@ -9,6 +9,12 @@
*/
#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 "intern.h"
...
...
src/libraries/libisc-new/src/isc_master.c
View file @
5109e9ea
...
...
@@ -15,7 +15,12 @@
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h>
#include <sys/file.h>
#include <sys/socket.h>
#ifndef NULL
# include <stdio.h>
#endif
...
...
src/libraries/libisc-new/src/isc_message.c
View file @
5109e9ea
...
...
@@ -12,12 +12,18 @@
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifndef NULL
# include <stdio.h>
#endif
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "isc.h"
#include "intern.h"
...
...
src/libraries/libisc-new/src/isc_output.c
View file @
5109e9ea
...
...
@@ -12,6 +12,9 @@
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <errno.h>
#ifdef HAVE_STRING_H
#include <string.h>
...
...
@@ -21,6 +24,7 @@
#ifndef NULL
# include <stdio.h>
#endif
#include <sys/socket.h>
#include "isc.h"
#include "intern.h"
...
...
src/libraries/libisc-new/src/isc_queue.c
View file @
5109e9ea
...
...
@@ -11,9 +11,15 @@
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#ifndef NULL
# include <stdio.h>
#endif
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "isc.h"
#include "intern.h"
...
...
src/libraries/libisc-new/src/isc_session.c
View file @
5109e9ea
...
...
@@ -13,10 +13,14 @@
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <fcntl.h>
#ifndef NULL
# include <stdio.h>
...
...
src/libraries/libisc-new/src/isc_socket.c
View file @
5109e9ea
...
...
@@ -16,6 +16,7 @@
#include <arpa/inet.h>
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <errno.h>
#include <netdb.h>
#ifdef HAVE_STDDEF_H
...
...
@@ -24,8 +25,11 @@
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <fcntl.h>
#include <sys/file.h>
#include "isc.h"
#include "intern.h"
...
...
src/libraries/libisc-new/src/isc_stdout.c
View file @
5109e9ea
...
...
@@ -12,6 +12,13 @@
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "isc.h"
...
...
src/libraries/libisc-new/src/isc_tcp.c
View file @
5109e9ea
...
...
@@ -15,12 +15,16 @@
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <ctype.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netdb.h>
#ifdef HAVE_STRING_H
# include <string.h>
...
...
src/libraries/libisc-new/src/isc_udp.c
View file @
5109e9ea
...
...
@@ -16,11 +16,15 @@
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <ctype.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netdb.h>
#ifdef HAVE_STRING_H
# include <string.h>
...
...
src/server/admin.c
View file @
5109e9ea
/*
* $Id: admin.c,v 0.1
0
1993/10/1
4 09:10:43
ceder Exp $
* $Id: admin.c,v 0.1
1
1993/10/1
8 12:28:50
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* Administrative calls.
*/
static
char
*
rcsid
=
"$Id: admin.c,v 0.1
0
1993/10/1
4 09:10:43
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: admin.c,v 0.1
1
1993/10/1
8 12:28:50
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -37,8 +37,11 @@ USE(rcsid);
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h>
#include <time.h>
#include "misc-types.h"
#include "s-string.h"
#include "kom-types.h"
#include "manipulate.h"
#include "com.h"
...
...
src/server/conference.c
View file @
5109e9ea
/*
* $Id: conference.c,v 0.2
2
1993/10/1
6
1
7:44:44
ceder Exp $
* $Id: conference.c,v 0.2
3
1993/10/1
8
1
2:28:55
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* All atomic calls that deals with conferences.
*/
static
char
*
rcsid
=
"$Id: conference.c,v 0.2
2
1993/10/1
6
1
7:44:44
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: conference.c,v 0.2
3
1993/10/1
8
1
2:28:55
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -39,7 +39,9 @@ USE(rcsid);
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h>
#include "s-string.h"
#include "kom-types.h"
#include "log.h"
#include "services.h"
...
...
src/server/connections.c
View file @
5109e9ea
/*
* $Id: connections.c,v 0.
29
1993/10/1
6
1
7:45
:02 ceder Exp $
* $Id: connections.c,v 0.
30
1993/10/1
8
1
2:29
:02 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -30,7 +30,7 @@
* Created by Willf|r 31/3-90. Mostly written by ceder.
*/
static
char
*
rcsid
=
"$Id: connections.c,v 0.
29
1993/10/1
6
1
7:45
:02 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: connections.c,v 0.
30
1993/10/1
8
1
2:29
:02 ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -55,8 +55,13 @@ USE(rcsid);
#ifndef HAVE_DIFFTIME
# include "tmp-difftime.h"
#endif
#include <sys/socket.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include "misc-types.h"
#include "s-string.h"
#include "kom-types.h"
#include "debug.h"
#include "isc-interface.h"
...
...
src/server/dbck-cache.c
View file @
5109e9ea
/*
* $Id: dbck-cache.c,v 0.1
6
1993/10/1
6
1
7:45:2
7 ceder Exp $
* $Id: dbck-cache.c,v 0.1
7
1993/10/1
8
1
2:29:0
7 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -32,7 +32,7 @@
* Also save time as a time_t instead of a struct tm.
*/
static
char
*
rcsid
=
"$Id: dbck-cache.c,v 0.1
6
1993/10/1
6
1
7:45:2
7 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: dbck-cache.c,v 0.1
7
1993/10/1
8
1
2:29:0
7 ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -64,6 +64,7 @@ USE(rcsid);
#include "exp.h"
#include "misc-types.h"
#include "s-string.h"
#include "kom-types.h"
#include "kom-errno.h"
#include "cache.h"
...
...
src/server/dbck.c
View file @
5109e9ea
/*
* $Id: dbck.c,v 0.1
8
1993/10/1
6
1
7:45:49
ceder Exp $
* $Id: dbck.c,v 0.1
9
1993/10/1
8
1
2:29:14
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* Author: Per Cederqvist.
*/
static
char
*
rcsid
=
"$Id: dbck.c,v 0.1
8
1993/10/1
6
1
7:45:49
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: dbck.c,v 0.1
9
1993/10/1
8
1
2:29:14
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -39,8 +39,11 @@ USE(rcsid);
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <time.h>
#include <sys/types.h>
#include "misc-types.h"
#include "s-string.h"
#include "kom-types.h"
#include "tmp-limits.h"
#include "lyskomd.h"
...
...
@@ -362,7 +365,7 @@ check_misc_infos(Text_no tno,
c
=
cached_get_conf_stat
(
group
.
recipient
);
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
"
,
(
u
nsigned
long
)
tno
);
if
(
rflag
||
confirm
(
"Repair by deleting misc_item? "
))
{
delete_misc
(
tstat
,
previous
);
...
...
@@ -384,18 +387,18 @@ check_misc_infos(Text_no tno,
if
(
group
.
local_no
<
c
->
texts
.
first_local_no
)
{
log
(
"Text %lu: Recipient %lu<%lu> loc_no is less than %lu
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
recipient
,
(
u
_
long
)
group
.
local_no
,
(
u
_
long
)
c
->
texts
.
first_local_no
);
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
recipient
,
(
u
nsigned
long
)
group
.
local_no
,
(
u
nsigned
long
)
c
->
texts
.
first_local_no
);
error
++
;
}
else
if
(
c
->
texts
.
first_local_no
+
c
->
texts
.
no_of_texts
-
1
<
group
.
local_no
)
{
log
(
"Text %lu: Recipient %lu<%lu> loc_no > %lu
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
recipient
,
(
u
_
long
)
group
.
local_no
,
(
u
_
long
)(
c
->
texts
.
first_local_no
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
recipient
,
(
u
nsigned
long
)
group
.
local_no
,
(
u
nsigned
long
)(
c
->
texts
.
first_local_no
+
c
->
texts
.
no_of_texts
-
1
));
error
++
;
}
...
...
@@ -403,10 +406,10 @@ check_misc_infos(Text_no tno,
-
c
->
texts
.
first_local_no
]
!=
tno
)
{
log
(
"Text %lu: Recipient %lu<%lu>: %s to %lu.
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
recipient
,
(
u
_
long
)
group
.
local_no
,
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
recipient
,
(
u
nsigned
long
)
group
.
local_no
,
"that local number is mapped"
,
(
u
_
long
)
c
->
texts
.
texts
[
group
.
local_no
(
u
nsigned
long
)
c
->
texts
.
texts
[
group
.
local_no
-
c
->
texts
.
first_local_no
]);
error
++
;
}
...
...
@@ -418,7 +421,7 @@ check_misc_infos(Text_no tno,
if
(
c
==
NULL
&&
group
.
cc_recipient
==
0
)
{
log
(
"Conference 0 is cc_recipient to text %lu.
\n
"
,
(
u
_
long
)
tno
);
(
u
nsigned
long
)
tno
);
if
(
rflag
||
confirm
(
"Repair by deleting misc_item? "
))
{
delete_misc
(
tstat
,
previous
);
...
...
@@ -440,18 +443,18 @@ check_misc_infos(Text_no tno,
if
(
group
.
local_no
<
c
->
texts
.
first_local_no
)
{
log
(
"Text %lu: CC_Recipient %lu<%lu> is less than %lu
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
cc_recipient
,
(
u
_
long
)
group
.
local_no
,
(
u
_
long
)
c
->
texts
.
first_local_no
);
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
cc_recipient
,
(
u
nsigned
long
)
group
.
local_no
,
(
u
nsigned
long
)
c
->
texts
.
first_local_no
);
error
++
;
}
else
if
(
c
->
texts
.
first_local_no
+
c
->
texts
.
no_of_texts
-
1
<
group
.
local_no
)
{
log
(
"Text %lu: CC_Recipient %lu<%lu> loc_no > %lu
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
cc_recipient
,
(
u
_
long
)
group
.
local_no
,
(
u
_
long
)(
c
->
texts
.
first_local_no
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
cc_recipient
,
(
u
nsigned
long
)
group
.
local_no
,
(
u
nsigned
long
)(
c
->
texts
.
first_local_no
+
c
->
texts
.
no_of_texts
-
1
));
error
++
;
}
...
...
@@ -459,10 +462,10 @@ check_misc_infos(Text_no tno,
-
c
->
texts
.
first_local_no
]
!=
tno
)
{
log
(
"Text %lu: CC_Recipient %lu<%lu>: %s to %lu.
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
cc_recipient
,
(
u
_
long
)
group
.
local_no
,
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
cc_recipient
,
(
u
nsigned
long
)
group
.
local_no
,
"that local number is mapped"
,
(
u
_
long
)
c
->
texts
.
texts
[
group
.
local_no
(
u
nsigned
long
)
c
->
texts
.
texts
[
group
.
local_no
-
c
->
texts
.
first_local_no
]);
error
++
;
}
...
...
@@ -475,7 +478,7 @@ check_misc_infos(Text_no tno,
if
(
t
==
NULL
)
{
log
(
"Text %lu is a comment to %lu, which doesn't exist.
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
comment_to
);
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
comment_to
);
if
(
rflag
||
confirm
(
"Repair by deleting misc_item? "
))
{
...
...
@@ -493,7 +496,7 @@ check_misc_infos(Text_no tno,
else
if
(
!
is_comment_to
(
tno
,
t
))
{
log
(
"Text %lu is a comment to %lu, but not the reverse.
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
comment_to
);
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
comment_to
);
error
++
;
}
...
...
@@ -505,7 +508,7 @@ check_misc_infos(Text_no tno,
if
(
t
==
NULL
)
{
log
(
"Text %lu is commented in %lu, which doesn't exist.
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
commented_in
);
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
commented_in
);
if
(
rflag
||
confirm
(
"Repair by deleting misc_item? "
))
{
...
...
@@ -521,7 +524,7 @@ check_misc_infos(Text_no tno,
else
if
(
!
is_commented_in
(
tno
,
t
))
{
log
(
"Text %lu is a comment to %lu, but not the reverse.
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
commented_in
);
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
commented_in
);
error
++
;
}
...
...
@@ -533,7 +536,7 @@ check_misc_infos(Text_no tno,
if
(
t
==
NULL
)
{
log
(
"Text %lu is a footnote to %lu, which doesn't exist.
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
footnote_to
);
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
footnote_to
);
if
(
rflag
||
confirm
(
"Repair by deleting misc_item? "
))
{
...
...
@@ -549,7 +552,7 @@ check_misc_infos(Text_no tno,
else
if
(
!
is_footnote_to
(
tno
,
t
))
{
log
(
"Text %lu is a footnote to %lu, but not the reverse.
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
footnote_to
);
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
footnote_to
);
error
++
;
}
...
...
@@ -561,7 +564,7 @@ check_misc_infos(Text_no tno,
if
(
t
==
NULL
)
{
log
(
"Text %lu is footnoted in %lu, which doesn't exist.
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
footnoted_in
);
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
footnoted_in
);
if
(
rflag
||
confirm
(
"Repair by deleting misc_item? "
))
{
...
...
@@ -577,7 +580,7 @@ check_misc_infos(Text_no tno,
else
if
(
!
is_footnoted_in
(
tno
,
t
))
{
log
(
"Text %lu is a footnot to %lu, but not the reverse.
\n
"
,
(
u
_
long
)
tno
,
(
u
_
long
)
group
.
footnoted_in
);
(
u
nsigned
long
)
tno
,
(
u
nsigned
long
)
group
.
footnoted_in
);
error
++
;
}
...
...
@@ -585,14 +588,14 @@ check_misc_infos(Text_no tno,
default:
log
(
"check_misc_infos(): parse_next_misc returned type %lu
\n
"
,
(
u
_
long
)
group
.
type
);
(
u
nsigned
long
)
group
.
type
);
break
;
}
}
if
(
group
.
type
==
m_error
)
{
log
(
"Text %lu has a bad misc_info_list.
\n
"
,
(
u
_
long
)
tno
);
log
(
"Text %lu has a bad misc_info_list.
\n
"
,
(
u
nsigned
long
)
tno
);
error
++
;
}
...
...
@@ -609,8 +612,8 @@ check_texts(void)
Text_stat
*
ctp
=
NULL
;
long
errors
=
0
;
Text_no
number_of_texts
=
0
;
u
_
long
bytes
=
0
;
u
_
long
max_bytes
=
0
;
u
nsigned
long
bytes
=
0
;
u
nsigned
long
max_bytes
=
0
;
Text_no
max_text
=
0
;
while
(
(
ct
=
traverse_text
(
ct
))
!=
0
)
...
...
@@ -644,11 +647,11 @@ check_texts(void)
else
{
log
(
"Total of %lu texts (total %lu bytes, avg. %lu bytes/text).
\n
"
,
(
u
_
long
)
number_of_texts
,
(
u
_
long
)
bytes
,
(
u
_
long
)(
bytes
/
number_of_texts
));
(
u
nsigned
long
)
number_of_texts
,
(
u
nsigned
long
)
bytes
,
(
u
nsigned
long
)(
bytes
/
number_of_texts
));
log
(
"Longest text is %lu (%lu bytes).
\n
"
,
(
u
_
long
)
max_text
,
(
u
_
long
)
max_bytes
);
(
u
nsigned
long
)
max_text
,
(
u
nsigned
long
)
max_bytes
);
}
}
...
...
@@ -658,8 +661,8 @@ check_texts(void)
static
Bool
adjust_text_list
(
Text_list
*
text_list
)
{
u
_
long
zeroes
;
u
_
long
i
;
u
nsigned
long
zeroes
;
u
nsigned
long
i
;
for
(
zeroes
=
0
;
zeroes
<
text_list
->
no_of_texts
&&
text_list
->
texts
[
zeroes
]
==
0
;
...
...
@@ -686,7 +689,7 @@ static int
check_created_texts
(
Pers_no
pno
,
Text_list
*
created
)
{
u
_
long
i
;
u
nsigned
long
i
;
Text_stat
*
t
;
int
error
=
0
;
...
...
@@ -698,15 +701,15 @@ check_created_texts(Pers_no pno,
if
(
t
!=
NULL
&&
t
->
author
!=
pno
)
{
log
(
"Person %lu is author of text %lu whose author is %lu.
\n
"
,
(
u
_
long
)
pno
,
(
u
_
long
)
created
->
texts
[
i
],
(
u
_
long
)
t
->
author
);
(
u
nsigned
long
)
pno
,
(
u
nsigned
long
)
created
->
texts
[
i
],
(
u
nsigned
long
)
t
->
author
);
error
++
;
}
if
(
t
==
NULL
)
{
log
(
"Person %lu is author of text %lu, which doesn't exist.
\n
"
,
(
u
_
long
)
pno
,
(
u
_
long
)
created
->
texts
[
i
]);
(
u
nsigned
long
)
pno
,
(
u
nsigned
long
)
created
->
texts
[
i
]);
if
(
rflag
||
confirm
(
"Repair by setting to text_no to 0 in local map"
))
{
...
...
@@ -724,7 +727,7 @@ check_created_texts(Pers_no pno,
if
(
created
->
no_of_texts
>
0
&&
created
->
texts
[
0
]
==
0
)
{
log
(
"Person %lu has a bad created_texts array. Starts with a 0.
\n
"
,
(
u
_
long
)
pno
);
(
u
nsigned
long
)
pno
);
if
(
rflag
||
confirm
(
"Repair by adjusting created_texts"
))
{
adjust_text_list
(
created
);
...
...
@@ -752,7 +755,7 @@ check_membership(Pers_no pno,
if
(
conf
==
NULL
)
{