From 03c71dd23e511ee23c291333b6d5e43acd02fe95 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 23 Oct 2021 14:24:23 -0600 Subject: [PATCH] xdmauth.c: fix some implicit-int warnings --- cde/programs/dtlogin/xdmauth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cde/programs/dtlogin/xdmauth.c b/cde/programs/dtlogin/xdmauth.c index 585e1f078..e60ddfe47 100644 --- a/cde/programs/dtlogin/xdmauth.c +++ b/cde/programs/dtlogin/xdmauth.c @@ -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 : -1) -static +static int HexToBinary (char *key) { char *out, *in; @@ -276,7 +276,7 @@ HexToBinary (char *key) * 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; char line[1024], id[1024], key[1024]; @@ -315,7 +315,7 @@ XdmGetKey (struct protoDisplay *pdpy, ARRAY8Ptr displayID) } /*ARGSUSED*/ -XdmCheckAuthentication (struct protoDisplay *pdpy, ARRAY8Ptr displayID, +int XdmCheckAuthentication (struct protoDisplay *pdpy, ARRAY8Ptr displayID, ARRAY8Ptr authenticationName, ARRAY8Ptr authenticationData) { XdmAuthKeyPtr incoming;