X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fparse.c;h=479b300450e4dcfd4f601b703bc4a573fc3f8a77;hb=5e82a91d1337b78510bc62fe3c7e43f9c0b7d3d1;hp=95c49a513db779063e79429bccec40d8363b5191;hpb=5462c6c50fd01fd516e29a42ee0b15c946c11d27;p=ngircd-alex.git diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index 95c49a51..479b3004 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -120,8 +120,6 @@ static bool Validate_Args PARAMS(( CONN_ID Idx, REQUEST *Req, bool *Closed )); static bool Handle_Request PARAMS(( CONN_ID Idx, REQUEST *Req )); -#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) - /** * Return the pointer to the global "IRC command structure". * This structure, an array of type "COMMAND" describes all the IRC commands @@ -397,7 +395,7 @@ Handle_Numeric(CLIENT *client, REQUEST *Req) /* This server is the target of the numeric */ num = atoi(Req->command); - for (i = 0; i < (int) ARRAY_SIZE(Numerics); i++) { + for (i = 0; i < (int) C_ARRAY_SIZE(Numerics); i++) { if (num == Numerics[i].numeric) { if (!Numerics[i].function) return CONNECTED;