// Copyright (c) 2014-2023 by the citadel.org team
//
// This program is open source software. Use, duplication, or disclosure
-// are subject to the terms of the GNU General Public License version 3.
+// is subject to the terms of the GNU General Public License version 3.
#include "../../sysdep.h"
#include <stdlib.h>
struct nntp_msglist nm;
struct cdbdata *cdbfr;
- cdbfr = cdb_fetch(CDB_MSGLISTS, &qrbuf->QRnumber, sizeof(long));
- if (cdbfr != NULL) {
- nm.msgnums = (long*)cdbfr->ptr;
- cdbfr->ptr = NULL; // (this needs attention if we move to LMDB)
- nm.num_msgs = cdbfr->len / sizeof(long);
- cdbfr->len = 0;
- cdb_free(cdbfr);
- }
- else {
- nm.num_msgs = 0;
- nm.msgnums = NULL;
- }
+ nm.num_msgs = CtdlFetchMsgList(qrbuf->QRnumber, &nm.msgnums);
return(nm);
}
if (!strcasecmp(stringy_gmt, "GMT")) {
tzset();
#ifdef __FreeBSD__
- thetime += &tm.tm_gmtoff;
+ thetime += (time_t) &tm.tm_gmtoff;
#else
- thetime += timezone;
+ thetime += (time_t) timezone;
#endif
}