* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: ngircd.c,v 1.33 2002/03/12 15:19:12 alex Exp $
+ * $Id: ngircd.c,v 1.35 2002/03/25 19:11:01 alex Exp $
*
* ngircd.c: Hier beginnt alles ;-)
*/
LOCAL VOID Show_Help( VOID );
-GLOBAL INT main( INT argc, CONST CHAR *argv[] )
+GLOBAL int main( int argc, const char *argv[] )
{
BOOLEAN ok;
- INT pid, i, n;
+ INT32 pid, n;
+ INT i;
NGIRCd_Restart = FALSE;
NGIRCd_Quit = FALSE;
{
/* Kurze Option */
- for( n = 1; n < strlen( argv[i] ); n++ )
+ for( n = 1; n < (INT32)strlen( argv[i] ); n++ )
{
ok = FALSE;
#ifdef DEBUG
if( ! NGIRCd_NoDaemon )
{
/* Daemon im Hintergrund erzeugen */
- pid = fork( );
+ pid = (INT32)fork( );
if( pid > 0 )
{
/* "alter" Prozess */
}
/* Child-Prozess initialisieren */
- setsid( );
+ (VOID)setsid( );
chdir( "/" );
}
/* Globale Variablen initialisieren */
NGIRCd_Start = time( NULL );
- strftime( NGIRCd_StartStr, 64, "%a %b %d %Y at %H:%M:%S (%Z)", localtime( &NGIRCd_Start ));
+ (VOID)strftime( NGIRCd_StartStr, 64, "%a %b %d %Y at %H:%M:%S (%Z)", localtime( &NGIRCd_Start ));
NGIRCd_Restart = FALSE;
NGIRCd_Quit = FALSE;
#endif
if( txt[0] ) strcat( txt, "-" );
- strcat( txt, TARGET_OS"/"TARGET_CPU );
+ strcat( txt, TARGET_CPU"/"TARGET_VENDOR"/"TARGET_OS );
return txt;
} /* NGIRCd_VersionAddition */