projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7628b96
)
fixed an error in one of the log messages
author
Art Cancro
<ajc@citadel.org>
Tue, 3 Jul 2018 22:27:26 +0000
(18:27 -0400)
committer
Art Cancro
<ajc@citadel.org>
Tue, 3 Jul 2018 22:27:26 +0000
(18:27 -0400)
citadel/msgbase.c
patch
|
blob
|
history
diff --git
a/citadel/msgbase.c
b/citadel/msgbase.c
index 6db04f8a1b326ecc919d57e4f7bf40ca4e312ec0..30f9a6888b9c084a681e257656731a7b6ef4bbc0 100644
(file)
--- a/
citadel/msgbase.c
+++ b/
citadel/msgbase.c
@@
-1,7
+1,7
@@
/*
* Implements the message store.
*
/*
* Implements the message store.
*
- * Copyright (c) 1987-201
7
by the citadel.org team
+ * Copyright (c) 1987-201
8
by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
@@
-3602,8
+3602,6
@@
void AdjRefCountList(long *msgnum, long nmsg, int incr)
struct arcq *new_arcq;
int rv = 0;
struct arcq *new_arcq;
int rv = 0;
- syslog(LOG_DEBUG, "msgbase: AdjRefCountList() msg %ld ref count delta %+d", nmsg, incr);
-
begin_critical_section(S_SUPPMSGMAIN);
if (arcfp == NULL) {
arcfp = fopen(file_arcq, "ab+");
begin_critical_section(S_SUPPMSGMAIN);
if (arcfp == NULL) {
arcfp = fopen(file_arcq, "ab+");
@@
-3624,6
+3622,7
@@
void AdjRefCountList(long *msgnum, long nmsg, int incr)
the_size = sizeof(struct arcq) * nmsg;
new_arcq = malloc(the_size);
for (i = 0; i < nmsg; i++) {
the_size = sizeof(struct arcq) * nmsg;
new_arcq = malloc(the_size);
for (i = 0; i < nmsg; i++) {
+ syslog(LOG_DEBUG, "msgbase: AdjRefCountList() msg %ld ref count delta %+d", msgnum[i], incr);
new_arcq[i].arcq_msgnum = msgnum[i];
new_arcq[i].arcq_delta = incr;
}
new_arcq[i].arcq_msgnum = msgnum[i];
new_arcq[i].arcq_delta = incr;
}