commit 10aa35cc91239863755a92626ec51beeaf092ddc from: Alexander Barton date: Wed Mar 06 15:35:19 2002 UTC - Dateinamen und Pfad sind nun in Konstanten definiert. commit - c68c092ce33ea88629ed896413ff771c1878e2c1 commit + 10aa35cc91239863755a92626ec51beeaf092ddc blob - 369a2e03d27b25d265458836cc0a9c506fa83e59 blob + 950d260daf1139a693789190f6d2d7cafc3ddb94 --- src/ngircd/conf.c +++ 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; blob - 8ea9506f0f7d90198c0474fe717718ca51d193c2 blob + ba5eda8c8310108fac21f373655c5e5fe12501d5 --- src/ngircd/defines.h +++ 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,7 +119,11 @@ #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