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
dfcb5d0b
Commit
dfcb5d0b
authored
Jan 26, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXresource.c: scope improvements
parent
026ddd8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
NXresource.c
nx-X11/programs/Xserver/hw/nxagent/NXresource.c
+6
-16
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXresource.c
View file @
dfcb5d0b
...
@@ -142,16 +142,11 @@ static int nxagentResChangedFlag = 0;
...
@@ -142,16 +142,11 @@ static int nxagentResChangedFlag = 0;
#ifdef NXAGENT_SERVER
#ifdef NXAGENT_SERVER
int
nxagentFindClientResource
(
int
client
,
RESTYPE
type
,
void
*
value
)
int
nxagentFindClientResource
(
int
client
,
RESTYPE
type
,
void
*
value
)
{
{
ResourcePtr
pResource
;
for
(
int
i
=
0
;
i
<
clientTable
[
client
].
buckets
;
i
++
)
ResourcePtr
*
resources
;
int
i
;
for
(
i
=
0
;
i
<
clientTable
[
client
].
buckets
;
i
++
)
{
{
resources
=
clientTable
[
client
].
resources
;
ResourcePtr
*
resources
=
clientTable
[
client
].
resources
;
for
(
pResource
=
resources
[
i
];
pResource
;
pResource
=
pResource
->
next
)
for
(
ResourcePtr
pResource
=
resources
[
i
];
pResource
;
pResource
=
pResource
->
next
)
{
{
if
(
pResource
->
type
==
type
&&
pResource
->
value
==
value
)
if
(
pResource
->
type
==
type
&&
pResource
->
value
==
value
)
{
{
...
@@ -171,13 +166,8 @@ int nxagentFindClientResource(int client, RESTYPE type, void * value)
...
@@ -171,13 +166,8 @@ int nxagentFindClientResource(int client, RESTYPE type, void * value)
int
nxagentSwitchResourceType
(
int
client
,
RESTYPE
type
,
void
*
value
)
int
nxagentSwitchResourceType
(
int
client
,
RESTYPE
type
,
void
*
value
)
{
{
ResourcePtr
pResource
;
ResourcePtr
*
resources
;
RESTYPE
internalType
=
0
;
RESTYPE
internalType
=
0
;
int
i
;
if
(
type
==
RT_PIXMAP
)
if
(
type
==
RT_PIXMAP
)
{
{
internalType
=
RT_NX_PIXMAP
;
internalType
=
RT_NX_PIXMAP
;
...
@@ -205,11 +195,11 @@ int nxagentSwitchResourceType(int client, RESTYPE type, void * value)
...
@@ -205,11 +195,11 @@ int nxagentSwitchResourceType(int client, RESTYPE type, void * value)
return
0
;
return
0
;
}
}
for
(
i
=
0
;
i
<
clientTable
[
serverClient
->
index
].
buckets
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
clientTable
[
serverClient
->
index
].
buckets
;
i
++
)
{
{
resources
=
clientTable
[
serverClient
->
index
].
resources
;
ResourcePtr
*
resources
=
clientTable
[
serverClient
->
index
].
resources
;
for
(
pResource
=
resources
[
i
];
pResource
;
pResource
=
pResource
->
next
)
for
(
ResourcePtr
pResource
=
resources
[
i
];
pResource
;
pResource
=
pResource
->
next
)
{
{
if
(
pResource
->
type
==
internalType
&&
if
(
pResource
->
type
==
internalType
&&
pResource
->
value
==
value
)
pResource
->
value
==
value
)
...
...
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