From 10aa35cc91239863755a92626ec51beeaf092ddc Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 6 Mar 2002 15:35:19 +0000 Subject: [PATCH] - Dateinamen und Pfad sind nun in Konstanten definiert. --- src/ngircd/conf.c | 9 ++++++--- src/ngircd/defines.h | 9 ++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 369a2e03..950d260d 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -9,11 +9,14 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conf.c,v 1.14 2002/03/03 17:17:01 alex Exp $ + * $Id: conf.c,v 1.15 2002/03/06 15:35:19 alex Exp $ * * conf.h: Konfiguration des ngircd * * $Log: conf.c,v $ + * Revision 1.15 2002/03/06 15:35:19 alex + * - Dateinamen und Pfad sind nun in Konstanten definiert. + * * Revision 1.14 2002/03/03 17:17:01 alex * - strncpy() und vsnprintf() kopieren nun etwas "optimierter" (1 Byte weniger) :-) * @@ -90,13 +93,13 @@ GLOBAL VOID Conf_Init( VOID ) /* Konfigurationsvariablen initialisieren: zunaechst Default- * Werte setzen, dann Konfigurationsdtaei einlesen. */ - strcpy( Conf_File, "/usr/local/etc/ngircd.conf" ); + strcpy( Conf_File, CONFIG_FILE ); strcpy( Conf_ServerName, "" ); strcpy( Conf_ServerInfo, PACKAGE" "VERSION ); strcpy( Conf_ServerPwd, "" ); - strcpy( Conf_MotdFile, "/usr/local/etc/ngircd.motd" ); + strcpy( Conf_MotdFile, MOTD_FILE ); Conf_ListenPorts_Count = 0; diff --git a/src/ngircd/defines.h b/src/ngircd/defines.h index 8ea9506f..ba5eda8c 100644 --- a/src/ngircd/defines.h +++ b/src/ngircd/defines.h @@ -9,11 +9,14 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: defines.h,v 1.14 2002/03/04 01:05:10 alex Exp $ + * $Id: defines.h,v 1.15 2002/03/06 15:35:19 alex Exp $ * * defines.h: (globale) Konstanten * * $Log: defines.h,v $ + * Revision 1.15 2002/03/06 15:35:19 alex + * - Dateinamen und Pfad sind nun in Konstanten definiert. + * * Revision 1.14 2002/03/04 01:05:10 alex * - neue Konstante DEFAULT_AWAY_MSG fuer die Default-Away-Meldung. * @@ -116,6 +119,10 @@ #define DEFAULT_AWAY_MSG "Away" /* Away-Meldung fuer User von anderen Servern */ +#define CONFIG_FILE "/usr/local/etc/ngircd.conf" +#define MOTD_FILE "/usr/local/etc/ngircd.motd" +#define ERROR_FILE "/tmp/ngircd.err" + #endif -- 2.39.2