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
06173efd
Commit
06173efd
authored
Oct 02, 2020
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compext.c: scope improvements
parent
ee379d3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
Compext.c
nx-X11/programs/Xserver/hw/nxagent/compext/Compext.c
+6
-14
No files found.
nx-X11/programs/Xserver/hw/nxagent/compext/Compext.c
View file @
06173efd
...
...
@@ -3194,7 +3194,7 @@ XImage *NXCacheFindImage(NXPackedImage *src_image, unsigned int *method, unsigne
{
md5_state_t
new_state
;
md5_byte_t
*
new_md5
;
unsigned
int
data_size
,
i
;
unsigned
int
data_size
;
if
(
NXImageCache
==
NULL
)
{
...
...
@@ -3228,7 +3228,7 @@ XImage *NXCacheFindImage(NXPackedImage *src_image, unsigned int *method, unsigne
md5_finish
(
&
new_state
,
new_md5
);
for
(
i
=
0
;
i
<
NXImageCacheSize
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
NXImageCacheSize
;
i
++
)
{
if
(
NXImageCache
[
i
].
image
!=
NULL
)
{
...
...
@@ -3984,9 +3984,7 @@ static Bool _NXCollectPropertyHandler(Display *dpy, xReply *rep, char *buf,
int
NXGetCollectPropertyResource
(
Display
*
dpy
)
{
int
i
;
for
(
i
=
0
;
i
<
NXNumberOfResources
;
i
++
)
for
(
int
i
=
0
;
i
<
NXNumberOfResources
;
i
++
)
{
if
(
_NXCollectedProperties
[
i
]
==
NULL
)
{
...
...
@@ -4276,9 +4274,7 @@ static Bool _NXCollectGrabPointerHandler(Display *dpy, xReply *rep, char *buf,
int
NXGetCollectGrabPointerResource
(
Display
*
dpy
)
{
int
i
;
for
(
i
=
0
;
i
<
NXNumberOfResources
;
i
++
)
for
(
int
i
=
0
;
i
<
NXNumberOfResources
;
i
++
)
{
if
(
_NXCollectedGrabPointers
[
i
]
==
NULL
)
{
...
...
@@ -4554,9 +4550,7 @@ static Bool _NXCollectInputFocusHandler(Display *dpy, xReply *rep, char *buf,
int
NXGetCollectInputFocusResource
(
Display
*
dpy
)
{
int
i
;
for
(
i
=
0
;
i
<
NXNumberOfResources
;
i
++
)
for
(
int
i
=
0
;
i
<
NXNumberOfResources
;
i
++
)
{
if
(
_NXCollectedInputFocuses
[
i
]
==
NULL
)
{
...
...
@@ -4696,13 +4690,11 @@ void _NXDumpData(const unsigned char *buffer, unsigned int size)
{
unsigned
int
i
=
0
;
unsigned
int
ii
;
while
(
i
<
size
)
{
fprintf
(
stderr
,
"[%d]
\t
"
,
i
);
for
(
ii
=
0
;
i
<
size
&&
ii
<
8
;
i
++
,
ii
++
)
for
(
unsinged
int
ii
=
0
;
i
<
size
&&
ii
<
8
;
i
++
,
ii
++
)
{
fprintf
(
stderr
,
"%d
\t
"
,
(
unsigned
int
)
(
buffer
[
i
]));
}
...
...
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