repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 10aa35cc91239863755a92626ec51beeaf092ddc:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 10aa35cc91239863755a92626ec51beeaf092ddc
Author: Alexander Barton 
Date:   Wed Mar 6 15:35:19 2002 +0000

    - Dateinamen und Pfad sind nun in Konstanten definiert.

diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index 369a2e03d27b25d265458836cc0a9c506fa83e59..
index ..950d260daf1139a693789190f6d2d7cafc3ddb94 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 8ea9506f0f7d90198c0474fe717718ca51d193c2..
index ..ba5eda8c8310108fac21f373655c5e5fe12501d5 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

-----END OF PAGE-----