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:
parent
2a08554a0b
commit
34932cef6c
|
@ -36,6 +36,7 @@
|
|||
|
||||
/* Includes for authorization */
|
||||
#include "securitysrv.h"
|
||||
#include "os/osdep.h"
|
||||
|
||||
/*
|
||||
* Constants
|
||||
|
@ -56,8 +57,7 @@ static char *g_pAuthData = NULL;
|
|||
*/
|
||||
|
||||
#ifndef XCSECURITY
|
||||
static
|
||||
void
|
||||
void
|
||||
GenerateRandomData(int len, char *buf)
|
||||
{
|
||||
int fd;
|
||||
|
@ -70,9 +70,8 @@ GenerateRandomData(int len, char *buf)
|
|||
static char cookie[16]; /* 128 bits */
|
||||
|
||||
XID
|
||||
static
|
||||
MitGenerateCookie(unsigned data_length,
|
||||
char *data,
|
||||
const char *data,
|
||||
XID id, unsigned *data_length_return, char **data_return)
|
||||
{
|
||||
int i = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user