mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
os: xdmcp: simplify AddAuth handler call
No need for loading the address into temporary variable and later doing indirect call, since we can easily do direct call in each branch. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
11
os/xdmcp.c
11
os/xdmcp.c
@@ -902,13 +902,14 @@ XdmcpCheckAuthentication(ARRAY8Ptr Name, ARRAY8Ptr Data, int packet_type)
|
||||
static int
|
||||
XdmcpAddAuthorization(ARRAY8Ptr name, ARRAY8Ptr data)
|
||||
{
|
||||
AddAuthorFunc AddAuth;
|
||||
|
||||
if (AuthenticationFuncs && AuthenticationFuncs->AddAuth)
|
||||
AddAuth = AuthenticationFuncs->AddAuth;
|
||||
return AuthenticationFuncs->AddAuth(
|
||||
(unsigned short) name->length,
|
||||
(char *) name->data,
|
||||
(unsigned short) data->length, (char *) data->data);
|
||||
else
|
||||
AddAuth = AddAuthorization;
|
||||
return (*AddAuth) ((unsigned short) name->length,
|
||||
return AddAuthorization(
|
||||
(unsigned short) name->length,
|
||||
(char *) name->data,
|
||||
(unsigned short) data->length, (char *) data->data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user