about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2002-03-06 15:35:19 +0000
committerAlexander Barton <alex@barton.de>2002-03-06 15:35:19 +0000
commit10aa35cc91239863755a92626ec51beeaf092ddc (patch)
tree9e784fdb3a90f9676d1f4e9011ff7b310e10a6ef
parentc68c092ce33ea88629ed896413ff771c1878e2c1 (diff)
downloadngircd-10aa35cc91239863755a92626ec51beeaf092ddc.tar.gz
ngircd-10aa35cc91239863755a92626ec51beeaf092ddc.zip
- Dateinamen und Pfad sind nun in Konstanten definiert.
-rw-r--r--src/ngircd/conf.c9
-rw-r--r--src/ngircd/defines.h9
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