summaryrefslogtreecommitdiff
path: root/os/xdmauth.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-06-21 14:36:09 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-21 14:36:09 -0700
commit40aafaf154ba8a2cba857689d1481be2d4a610c2 (patch)
tree736a2973047f147f2e9b01c2dbc678f0cbf17a19 /os/xdmauth.c
parent77aa701e898c6525322cc4029d95167dd9f6e618 (diff)
fix a number of compiler warnings in os/*
Diffstat (limited to 'os/xdmauth.c')
-rw-r--r--os/xdmauth.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/os/xdmauth.c b/os/xdmauth.c
index 774298133..faa2e3799 100644
--- a/os/xdmauth.c
+++ b/os/xdmauth.c
@@ -41,6 +41,9 @@ from The Open Group.
#include <stdio.h>
#include <X11/X.h>
+#define XSERV_t
+#define TRANS_SERVER
+#define TRANS_REOPEN
#include <X11/Xtrans/Xtrans.h>
#include "os.h"
#include "osdep.h"
@@ -153,9 +156,9 @@ XdmAuthenticationInit (char *cookie, int cookie_len)
XdmcpRegisterAuthentication (XdmAuthenticationName, XdmAuthenticationNameLen,
(unsigned char *)&rho,
sizeof (rho),
- XdmAuthenticationValidator,
- XdmAuthenticationGenerator,
- XdmAuthenticationAddAuth);
+ (ValidatorFunc)XdmAuthenticationValidator,
+ (GeneratorFunc)XdmAuthenticationGenerator,
+ (AddAuthorFunc)XdmAuthenticationAddAuth);
}
#endif /* XDMCP */