From 2aba1bc0583aeb3ee6e26e3bfacd123abef744d9 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 1 Dec 2008 23:06:22 +0100 Subject: towards ANSI C make _IceProcessCoreMessage and default error handlers static --- src/iceauth.c | 48 +++++++++++++++++++++++------------------------- 1 file changed, 23 insertions(+), 25 deletions(-) (limited to 'src/iceauth.c') diff --git a/src/iceauth.c b/src/iceauth.c index dcee7ed..d782954 100644 --- a/src/iceauth.c +++ b/src/iceauth.c @@ -94,19 +94,17 @@ int len; IcePoAuthStatus -_IcePoMagicCookie1Proc (iceConn, authStatePtr, cleanUp, swap, - authDataLen, authData, replyDataLenRet, replyDataRet, errorStringRet) - -IceConn iceConn; -IcePointer *authStatePtr; -Bool cleanUp; -Bool swap; -int authDataLen; -IcePointer authData; -int *replyDataLenRet; -IcePointer *replyDataRet; -char **errorStringRet; - +_IcePoMagicCookie1Proc ( + IceConn iceConn, + IcePointer *authStatePtr, + Bool cleanUp, + Bool swap, + int authDataLen, + IcePointer authData, + int *replyDataLenRet, + IcePointer *replyDataRet, + char **errorStringRet +) { if (cleanUp) { @@ -168,21 +166,20 @@ char **errorStringRet; } } +IcePoAuthProc _IcePoAuthProcs[] = {_IcePoMagicCookie1Proc}; IcePaAuthStatus -_IcePaMagicCookie1Proc (iceConn, authStatePtr, swap, - authDataLen, authData, replyDataLenRet, replyDataRet, errorStringRet) - -IceConn iceConn; -IcePointer *authStatePtr; -Bool swap; -int authDataLen; -IcePointer authData; -int *replyDataLenRet; -IcePointer *replyDataRet; -char **errorStringRet; - +_IcePaMagicCookie1Proc ( + IceConn iceConn, + IcePointer *authStatePtr, + Bool swap, + int authDataLen, + IcePointer authData, + int *replyDataLenRet, + IcePointer *replyDataRet, + char **errorStringRet +) { *errorStringRet = NULL; *replyDataLenRet = 0; @@ -252,6 +249,7 @@ char **errorStringRet; } } +IcePaAuthProc _IcePaAuthProcs[] = {_IcePaMagicCookie1Proc}; /* -- cgit v1.2.3