From 27f9a9324d58c9a7472c724c62f5b7ea0e1f4681 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 5 Apr 2007 14:43:05 -0700 Subject: Provide ANSI C prototypes for more static functions --- src/connect.c | 9 +++------ src/getauth.c | 11 ++++------- src/iceauth.c | 7 ++----- 3 files changed, 9 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/connect.c b/src/connect.c index e06aa04..933c186 100644 --- a/src/connect.c +++ b/src/connect.c @@ -36,7 +36,8 @@ Author: Ralph Mor, X Consortium #include #include "globals.h" -static XtransConnInfo ConnectToPeer(); +static XtransConnInfo ConnectToPeer(char *networkIdsList, + char **actualConnectionRet); #define Strstr strstr @@ -449,11 +450,7 @@ IceConn iceConn; static XtransConnInfo -ConnectToPeer (networkIdsList, actualConnectionRet) - -char *networkIdsList; -char **actualConnectionRet; - +ConnectToPeer (char *networkIdsList, char **actualConnectionRet) { char addrbuf[256]; char* address; diff --git a/src/getauth.c b/src/getauth.c index 73fcd8a..4ad7878 100644 --- a/src/getauth.c +++ b/src/getauth.c @@ -35,7 +35,8 @@ Author: Ralph Mor, X Consortium #include "ICElibint.h" #include -static Bool auth_valid (); +static Bool auth_valid (const char *auth_name, int num_auth_names, + char **auth_names, int *index_ret); extern int _IcePaAuthDataEntryCount; extern IceAuthDataEntry _IcePaAuthDataEntries[]; @@ -244,12 +245,8 @@ int *indices_ret; /* in/out arg */ */ static Bool -auth_valid (auth_name, num_auth_names, auth_names, index_ret) - -char *auth_name; -int num_auth_names; -char **auth_names; -int *index_ret; +auth_valid (const char *auth_name, int num_auth_names, + char **auth_names, int *index_ret) { /* diff --git a/src/iceauth.c b/src/iceauth.c index 01c73ce..38500a5 100644 --- a/src/iceauth.c +++ b/src/iceauth.c @@ -38,7 +38,7 @@ Author: Ralph Mor, X Consortium #include #define Time_t time_t -static int binaryEqual (); +static int binaryEqual (const char *a, const char *b, unsigned len); static int was_called_state; @@ -265,10 +265,7 @@ char **errorStringRet; */ static int -binaryEqual (a, b, len) - -register char *a, *b; -register unsigned len; +binaryEqual (const char *a, const char *b, unsigned len) { while (len--) -- cgit v1.2.3