diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-04-05 14:43:05 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-04-05 14:43:05 -0700 |
commit | 27f9a9324d58c9a7472c724c62f5b7ea0e1f4681 (patch) | |
tree | 93a5ce4d0ddaf9c13e3b6b2f0c32246aab238f43 /src | |
parent | bb639803a779ceace05d183b653da88f010ab29c (diff) |
Provide ANSI C prototypes for more static functions
Diffstat (limited to 'src')
-rw-r--r-- | src/connect.c | 9 | ||||
-rw-r--r-- | src/getauth.c | 11 | ||||
-rw-r--r-- | src/iceauth.c | 7 |
3 files changed, 9 insertions, 18 deletions
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 <X11/Xtrans/Xtrans.h> #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 <X11/ICE/ICEutil.h> -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 <time.h> #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--) |