xdmauth.c: fix some implicit-int warnings

This commit is contained in:
Jon Trulson
2021-10-23 14:24:23 -06:00
parent d880853113
commit 03c71dd23e

View File

@@ -246,7 +246,7 @@ void XdmGetXdmcpAuth (struct protoDisplay *pdpy, unsigned short authorizationNam
'a' <= c && c <= 'f' ? c - 'a' + 10 : \ 'a' <= c && c <= 'f' ? c - 'a' + 10 : \
'A' <= c && c <= 'F' ? c - 'A' + 10 : -1) 'A' <= c && c <= 'F' ? c - 'A' + 10 : -1)
static static int
HexToBinary (char *key) HexToBinary (char *key)
{ {
char *out, *in; char *out, *in;
@@ -276,7 +276,7 @@ HexToBinary (char *key)
* routine accepts either plain ascii strings for keys, or hex-encoded numbers * routine accepts either plain ascii strings for keys, or hex-encoded numbers
*/ */
XdmGetKey (struct protoDisplay *pdpy, ARRAY8Ptr displayID) int XdmGetKey (struct protoDisplay *pdpy, ARRAY8Ptr displayID)
{ {
FILE *keys; FILE *keys;
char line[1024], id[1024], key[1024]; char line[1024], id[1024], key[1024];
@@ -315,7 +315,7 @@ XdmGetKey (struct protoDisplay *pdpy, ARRAY8Ptr displayID)
} }
/*ARGSUSED*/ /*ARGSUSED*/
XdmCheckAuthentication (struct protoDisplay *pdpy, ARRAY8Ptr displayID, int XdmCheckAuthentication (struct protoDisplay *pdpy, ARRAY8Ptr displayID,
ARRAY8Ptr authenticationName, ARRAY8Ptr authenticationData) ARRAY8Ptr authenticationName, ARRAY8Ptr authenticationData)
{ {
XdmAuthKeyPtr incoming; XdmAuthKeyPtr incoming;