hw/xwin: Fix compilation of winauth.c with -Werror=implicit-function-declaration

/jhbuild/checkout/xorg/xserver/hw/xwin/winauth.c: In function ‘MitGenerateCookie’:
/jhbuild/checkout/xorg/xserver/hw/xwin/winauth.c:87:5: error: implicit declaration of function ‘MitAddCookie’ [-Werror=implicit-function-declaration]

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Reviewed-by: Marc Haesen <marha@users.sourceforge.net>
This commit is contained in:
Jon TURNEY 2013-04-01 13:43:00 +01:00
parent 2a08554a0b
commit 34932cef6c

View File

@ -36,6 +36,7 @@
/* Includes for authorization */ /* Includes for authorization */
#include "securitysrv.h" #include "securitysrv.h"
#include "os/osdep.h"
/* /*
* Constants * Constants
@ -56,8 +57,7 @@ static char *g_pAuthData = NULL;
*/ */
#ifndef XCSECURITY #ifndef XCSECURITY
static void
void
GenerateRandomData(int len, char *buf) GenerateRandomData(int len, char *buf)
{ {
int fd; int fd;
@ -70,9 +70,8 @@ GenerateRandomData(int len, char *buf)
static char cookie[16]; /* 128 bits */ static char cookie[16]; /* 128 bits */
XID XID
static
MitGenerateCookie(unsigned data_length, MitGenerateCookie(unsigned data_length,
char *data, const char *data,
XID id, unsigned *data_length_return, char **data_return) XID id, unsigned *data_length_return, char **data_return)
{ {
int i = 0; int i = 0;