Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
c61ac23f
You need to sign in or sign up before continuing.
Commit
c61ac23f
authored
May 03, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXdispatch.c: simplify InitClientPrivates()
by calling the upstream function from dix/dispatch.c
parent
24c42813
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
31 deletions
+9
-31
dispatch.c
nx-X11/programs/Xserver/dix/dispatch.c
+4
-2
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+5
-29
No files found.
nx-X11/programs/Xserver/dix/dispatch.c
View file @
c61ac23f
...
@@ -3648,9 +3648,12 @@ void InitClient(ClientPtr client, int i, void * ospriv)
...
@@ -3648,9 +3648,12 @@ void InitClient(ClientPtr client, int i, void * ospriv)
client
->
clientIds
=
NULL
;
client
->
clientIds
=
NULL
;
}
}
#ifndef NXAGENT_SERVER
int
int
#ifdef NXAGENT_SERVER
xorg_InitClientPrivates
(
ClientPtr
client
)
#else
InitClientPrivates
(
ClientPtr
client
)
InitClientPrivates
(
ClientPtr
client
)
#endif
{
{
register
char
*
ptr
;
register
char
*
ptr
;
DevUnion
*
ppriv
;
DevUnion
*
ppriv
;
...
@@ -3694,7 +3697,6 @@ InitClientPrivates(ClientPtr client)
...
@@ -3694,7 +3697,6 @@ InitClientPrivates(ClientPtr client)
}
}
return
1
;
return
1
;
}
}
#endif
/* NXAGENT_SERVER */
/************************
/************************
* int NextAvailableClient(ospriv)
* int NextAvailableClient(ospriv)
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
c61ac23f
...
@@ -1115,41 +1115,17 @@ CloseDownClient(register ClientPtr client)
...
@@ -1115,41 +1115,17 @@ CloseDownClient(register ClientPtr client)
int
int
InitClientPrivates
(
ClientPtr
client
)
InitClientPrivates
(
ClientPtr
client
)
{
{
register
char
*
ptr
;
int
ret
=
xorg_InitClientPrivates
(
client
);
DevUnion
*
ppriv
;
register
unsigned
*
sizes
;
if
(
ret
==
1
)
register
unsigned
size
;
register
int
i
;
if
(
totalClientSize
==
sizeof
(
ClientRec
))
ppriv
=
(
DevUnion
*
)
NULL
;
else
if
(
client
->
index
)
ppriv
=
(
DevUnion
*
)(
client
+
1
);
else
{
ppriv
=
(
DevUnion
*
)
malloc
(
totalClientSize
-
sizeof
(
ClientRec
));
if
(
!
ppriv
)
return
0
;
}
client
->
devPrivates
=
ppriv
;
sizes
=
clientPrivateSizes
;
ptr
=
(
char
*
)(
ppriv
+
clientPrivateLen
);
for
(
i
=
clientPrivateLen
;
--
i
>=
0
;
ppriv
++
,
sizes
++
)
{
if
(
(
size
=
*
sizes
)
)
{
{
ppriv
->
ptr
=
(
void
*
)
ptr
;
ptr
+=
size
;
}
else
ppriv
->
ptr
=
(
void
*
)
NULL
;
}
/*
/*
* Initialize the private members.
* Initialize the private members.
*/
*/
nxagentInitClientPrivates
(
client
);
nxagentInitClientPrivates
(
client
);
}
return
1
;
return
ret
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment