/* Ensure that we are linked to the correct version of libcitadel */
if (libcitadel_version_number() < LIBCITADEL_VERSION_NUMBER) {
- fprintf(stderr, "You are running libcitadel version %d.%02d\n",
- (libcitadel_version_number() / 100), (libcitadel_version_number() % 100)
- );
- fprintf(stderr, "citserver was compiled against version %d.%02d\n",
- (LIBCITADEL_VERSION_NUMBER / 100), (LIBCITADEL_VERSION_NUMBER % 100)
- );
+ fprintf(stderr, "You are running libcitadel version %d\n", libcitadel_version_number());
+ fprintf(stderr, "citserver was compiled against version %d\n", LIBCITADEL_VERSION_NUMBER);
exit(CTDLEXIT_LIBCITADEL);
}
void nntp_capabilities(void)
{
cprintf("101 Capability list:\r\n");
- cprintf("IMPLEMENTATION Citadel v%d.%02d\r\n", (REV_LEVEL/100), (REV_LEVEL%100));
+ cprintf("IMPLEMENTATION Citadel %d\r\n", REV_LEVEL);
cprintf("VERSION 2\r\n");
cprintf("READER\r\n");
cprintf("MODE-READER\r\n");
/*
* Transparently handle the upgrading of server data formats.
*
- * Copyright (c) 1987-2015 by the citadel.org team
+ * Copyright (c) 1987-2016 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.
*/
void check_server_upgrades(void) {
- syslog(LOG_INFO, "Existing database version on disk is %d.%02d",
- (CtdlGetConfigInt("MM_hosted_upgrade_level") / 100),
- (CtdlGetConfigInt("MM_hosted_upgrade_level") % 100)
- );
+ syslog(LOG_INFO, "Existing database version on disk is %d", CtdlGetConfigInt("MM_hosted_upgrade_level"));
if (CtdlGetConfigInt("MM_hosted_upgrade_level") < REV_LEVEL) {
syslog(LOG_WARNING,
/* Tell 'em who's in da house */
syslog(LOG_NOTICE, " ");
syslog(LOG_NOTICE, " ");
- syslog(LOG_NOTICE,
- "*** Citadel server engine v%d.%02d (build %s) ***",
- (REV_LEVEL/100), (REV_LEVEL%100), svn_revision());
+ syslog(LOG_NOTICE, "*** Citadel server engine ***\n");
+ syslog(LOG_NOTICE, "Version %d (build %s) ***", REV_LEVEL, svn_revision());
syslog(LOG_NOTICE, "Copyright (C) 1987-2016 by the Citadel development team.");
syslog(LOG_NOTICE, "This program is distributed under the terms of the GNU "
"General Public License.");
"to a new host system via a network connection, without disturbing\n"
"the source system. The target may be a different CPU architecture\n"
"and/or operating system. The source system should be running\n"
- "Citadel %d.%02d or newer, and the target system should be running\n"
+ "Citadel version %d or newer, and the target system should be running\n"
"either the same version or a newer version. You will also need\n"
"the 'rsync' utility, and OpenSSH v4 or newer.\n"
"\n"
"\n"
"Do you wish to continue? "
,
- EXPORT_REV_MIN / 100,
- EXPORT_REV_MIN % 100
+ EXPORT_REV_MIN
);
if ((fgets(yesno, sizeof yesno, stdin) == NULL) || (tolower(yesno[0]) != 'y')) {
* waiting on the specified port for incoming HTTP connections. When a
* connection is established, it calls context_loop() from context_loop.c.
*
- * Copyright (c) 1996-2012 by the citadel.org developers.
+ * Copyright (c) 1996-2016 by the citadel.org developers.
* This program is released under the terms of the GNU General Public License v3.
*/
/* Ensure that we are linked to the correct version of libcitadel */
if (libcitadel_version_number() < LIBCITADEL_VERSION_NUMBER) {
- fprintf(stderr, " You are running libcitadel version %d.%02d\n",
- (libcitadel_version_number() / 100), (libcitadel_version_number() % 100));
- fprintf(stderr, "WebCit was compiled against version %d.%02d\n",
- (LIBCITADEL_VERSION_NUMBER / 100), (LIBCITADEL_VERSION_NUMBER % 100));
+ fprintf(stderr, " You are running libcitadel version %d\n", (libcitadel_version_number()));
+ fprintf(stderr, "WebCit was compiled against version %d\n", LIBCITADEL_VERSION_NUMBER);
return(1);
}