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
cc8d8f72
Commit
cc8d8f72
authored
Jan 08, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drawable.c: get rid of goto code in nxagentSynchronizeDrawableData
Now all cleanup code at the end of the function is gone so there's no need for the gotos anymore. Just return directly.
parent
beef0cd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
Drawable.c
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
+4
-16
No files found.
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
View file @
cc8d8f72
...
@@ -245,8 +245,6 @@ static int reallySynchronizeDrawableData(DrawablePtr pDrawable)
...
@@ -245,8 +245,6 @@ static int reallySynchronizeDrawableData(DrawablePtr pDrawable)
int
nxagentSynchronizeDrawableData
(
DrawablePtr
pDrawable
,
unsigned
int
breakMask
,
WindowPtr
owner
)
int
nxagentSynchronizeDrawableData
(
DrawablePtr
pDrawable
,
unsigned
int
breakMask
,
WindowPtr
owner
)
{
{
int
success
;
if
(
pDrawable
->
type
==
DRAWABLE_PIXMAP
)
if
(
pDrawable
->
type
==
DRAWABLE_PIXMAP
)
{
{
/*
/*
...
@@ -261,9 +259,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
...
@@ -261,9 +259,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
__func__
,
(
void
*
)
pDrawable
);
__func__
,
(
void
*
)
pDrawable
);
#endif
#endif
success
=
reallySynchronizeDrawableData
(
pDrawable
);
return
reallySynchronizeDrawableData
(
pDrawable
);
goto
nxagentSynchronizeDrawableDataEnd
;
}
}
else
if
(
nxagentReconnectTrap
==
1
)
else
if
(
nxagentReconnectTrap
==
1
)
{
{
...
@@ -291,9 +287,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
...
@@ -291,9 +287,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
}
}
#endif
#endif
success
=
reallySynchronizeDrawableData
(
pDrawable
);
return
reallySynchronizeDrawableData
(
pDrawable
);
goto
nxagentSynchronizeDrawableDataEnd
;
}
}
else
else
{
{
...
@@ -304,9 +298,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
...
@@ -304,9 +298,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
nxagentMarkCorruptedRegion
(
pDrawable
,
NullRegion
);
nxagentMarkCorruptedRegion
(
pDrawable
,
NullRegion
);
success
=
1
;
return
1
;
goto
nxagentSynchronizeDrawableDataEnd
;
}
}
}
}
}
}
...
@@ -317,11 +309,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
...
@@ -317,11 +309,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
* the drawable.
* the drawable.
*/
*/
success
=
nxagentSynchronizeRegion
(
pDrawable
,
NullRegion
,
breakMask
,
owner
);
return
nxagentSynchronizeRegion
(
pDrawable
,
NullRegion
,
breakMask
,
owner
);
nxagentSynchronizeDrawableDataEnd:
return
success
;
}
}
/*
/*
...
...
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