From a29e37a4c1019166fa0ecec2875fe80ccb2cbe1d Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 4 Nov 2002 12:31:27 +0000 Subject: [PATCH] - Semantik der Conn_xxxFlag()-Funktionen geaendert. --- src/ngircd/conn.c | 16 ++++++++-------- src/ngircd/conn.h | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 85a90095..fd388b7e 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -9,7 +9,7 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conn.c,v 1.86 2002/11/02 23:00:45 alex Exp $ + * $Id: conn.c,v 1.87 2002/11/04 12:31:27 alex Exp $ * * connect.h: Verwaltung aller Netz-Verbindungen ("connections") */ @@ -76,7 +76,7 @@ typedef struct _Connection time_t lastprivmsg; /* Letzte PRIVMSG */ time_t delaytime; /* Nicht beachten bis ("penalty") */ LONG bytes_in, bytes_out; /* Counter fuer Statistik */ - BOOLEAN flagged; /* Channel ist "markiert" (vgl. "irc-write"-Modul) */ + INT flag; /* Channel-Flag (vgl. "irc-write"-Modul) */ } CONNECTION; @@ -601,27 +601,27 @@ Conn_ClearFlags( VOID ) LONG i; - for( i = 0; i < Pool_Size; i++ ) My_Connections[i].flagged = FALSE; + for( i = 0; i < Pool_Size; i++ ) My_Connections[i].flag = 0; } /* Conn_ClearFlags */ -GLOBAL BOOLEAN +GLOBAL INT Conn_Flag( CONN_ID Idx ) { /* Ist eine Connection markiert (TRUE) oder nicht? */ assert( Idx >= NONE ); - return My_Connections[Idx].flagged; + return My_Connections[Idx].flag; } /* Conn_Flag */ GLOBAL VOID -Conn_SetFlag( CONN_ID Idx ) +Conn_SetFlag( CONN_ID Idx, INT Flag ) { /* Connection markieren */ assert( Idx >= NONE ); - My_Connections[Idx].flagged = TRUE; + My_Connections[Idx].flag = Flag; } /* Conn_SetFlag */ @@ -1274,7 +1274,7 @@ Init_Conn_Struct( LONG Idx ) My_Connections[Idx].delaytime = 0; My_Connections[Idx].bytes_in = 0; My_Connections[Idx].bytes_out = 0; - My_Connections[Idx].flagged = FALSE; + My_Connections[Idx].flag = 0; } /* Init_Conn_Struct */ diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index 5a8d3e10..73793300 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -9,7 +9,7 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conn.h,v 1.19 2002/11/02 22:58:19 alex Exp $ + * $Id: conn.h,v 1.20 2002/11/04 12:31:27 alex Exp $ * * conn.h: Verwaltung aller Netz-Verbindungen ("connections") (Header) */ @@ -45,8 +45,8 @@ GLOBAL VOID Conn_SetPenalty PARAMS(( CONN_ID Idx, time_t Seconds )); GLOBAL VOID Conn_ResetPenalty PARAMS(( CONN_ID Idx )); GLOBAL VOID Conn_ClearFlags PARAMS(( VOID )); -GLOBAL BOOLEAN Conn_Flag PARAMS(( CONN_ID Idx )); -GLOBAL VOID Conn_SetFlag PARAMS(( CONN_ID Idx )); +GLOBAL INT Conn_Flag PARAMS(( CONN_ID Idx )); +GLOBAL VOID Conn_SetFlag PARAMS(( CONN_ID Idx, INT Flag )); GLOBAL CONN_ID Conn_First PARAMS(( VOID )); GLOBAL CONN_ID Conn_Next PARAMS(( CONN_ID Idx )); -- 2.39.2