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
61b8d44f
Unverified
Commit
61b8d44f
authored
Oct 20, 2016
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/fix_compile_warnings' into 3.6.x
Attributes GH PR #230:
https://github.com/ArcticaProject/nx-libs/pull/230
parents
da01dc8d
50eb5e4a
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
95 additions
and
101 deletions
+95
-101
GetFPath.c
nx-X11/lib/X11/GetFPath.c
+1
-1
GetIFocus.c
nx-X11/lib/X11/GetIFocus.c
+1
-1
GetKCnt.c
nx-X11/lib/X11/GetKCnt.c
+1
-1
GetPCnt.c
nx-X11/lib/X11/GetPCnt.c
+1
-1
GetPntMap.c
nx-X11/lib/X11/GetPntMap.c
+1
-1
GetSSaver.c
nx-X11/lib/X11/GetSSaver.c
+1
-1
GrServer.c
nx-X11/lib/X11/GrServer.c
+1
-1
Imakefile
nx-X11/lib/X11/Imakefile
+2
-2
LRGB.c
nx-X11/lib/X11/LRGB.c
+0
-3
LiHosts.c
nx-X11/lib/X11/LiHosts.c
+1
-1
ListExt.c
nx-X11/lib/X11/ListExt.c
+1
-1
Macros.c
nx-X11/lib/X11/Macros.c
+1
-1
ModMap.c
nx-X11/lib/X11/ModMap.c
+2
-2
Pending.c
nx-X11/lib/X11/Pending.c
+2
-2
QuKeybd.c
nx-X11/lib/X11/QuKeybd.c
+1
-1
ReconfWM.c
nx-X11/lib/X11/ReconfWM.c
+1
-1
Sync.c
nx-X11/lib/X11/Sync.c
+1
-1
UngrabSvr.c
nx-X11/lib/X11/UngrabSvr.c
+1
-1
XKBExtDev.c
nx-X11/lib/X11/XKBExtDev.c
+1
-1
XlibInt.c
nx-X11/lib/X11/XlibInt.c
+3
-1
Xlibint.h
nx-X11/lib/X11/Xlibint.h
+5
-0
cmsCmap.c
nx-X11/lib/X11/cmsCmap.c
+1
-1
imLcIm.c
nx-X11/lib/X11/imLcIm.c
+4
-3
lcGeneric.c
nx-X11/lib/X11/lcGeneric.c
+33
-41
security.c
nx-X11/programs/Xserver/Xext/security.c
+1
-2
xcmisc.c
nx-X11/programs/Xserver/Xext/xcmisc.c
+0
-4
sendexev.c
nx-X11/programs/Xserver/Xi/sendexev.c
+7
-3
dbe.c
nx-X11/programs/Xserver/dbe/dbe.c
+4
-3
devices.c
nx-X11/programs/Xserver/dix/devices.c
+1
-1
fbbits.h
nx-X11/programs/Xserver/fb/fbbits.h
+0
-2
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+2
-2
Colormap.c
nx-X11/programs/Xserver/hw/nxagent/Colormap.c
+1
-1
Display.c
nx-X11/programs/Xserver/hw/nxagent/Display.c
+0
-2
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+1
-1
region.c
nx-X11/programs/Xserver/xfixes/region.c
+0
-2
xkb.c
nx-X11/programs/Xserver/xkb/xkb.c
+1
-1
xkmread.c
nx-X11/programs/Xserver/xkb/xkmread.c
+7
-4
Loop.cpp
nxcomp/Loop.cpp
+3
-3
No files found.
nx-X11/lib/X11/GetFPath.c
View file @
61b8d44f
...
...
@@ -42,7 +42,7 @@ char **XGetFontPath(
int
count
=
0
;
register
unsigned
i
;
register
int
length
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
GetFontPath
,
req
);
...
...
nx-X11/lib/X11/GetIFocus.c
View file @
61b8d44f
...
...
@@ -36,7 +36,7 @@ XGetInputFocus(
int
*
revert_to
)
{
xGetInputFocusReply
rep
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
GetInputFocus
,
req
);
(
void
)
_XReply
(
dpy
,
(
xReply
*
)
&
rep
,
0
,
xTrue
);
...
...
nx-X11/lib/X11/GetKCnt.c
View file @
61b8d44f
...
...
@@ -35,7 +35,7 @@ XGetKeyboardControl (
register
XKeyboardState
*
state
)
{
xGetKeyboardControlReply
rep
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
GetKeyboardControl
,
req
);
(
void
)
_XReply
(
dpy
,
(
xReply
*
)
&
rep
,
...
...
nx-X11/lib/X11/GetPCnt.c
View file @
61b8d44f
...
...
@@ -38,7 +38,7 @@ XGetPointerControl(
int
*
threshold
)
{
xGetPointerControlReply
rep
;
xReq
*
req
;
_X_UNUSED
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
GetPointerControl
,
req
);
(
void
)
_XReply
(
dpy
,
(
xReply
*
)
&
rep
,
0
,
xTrue
);
...
...
nx-X11/lib/X11/GetPntMap.c
View file @
61b8d44f
...
...
@@ -45,7 +45,7 @@ int XGetPointerMapping (
unsigned
char
mapping
[
256
];
/* known fixed size */
unsigned
long
nbytes
,
remainder
=
0
;
xGetPointerMappingReply
rep
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
GetPointerMapping
,
req
);
...
...
nx-X11/lib/X11/GetSSaver.c
View file @
61b8d44f
...
...
@@ -40,7 +40,7 @@ XGetScreenSaver(
{
xGetScreenSaverReply
rep
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
GetScreenSaver
,
req
);
...
...
nx-X11/lib/X11/GrServer.c
View file @
61b8d44f
...
...
@@ -32,7 +32,7 @@ in this Software without prior written authorization from The Open Group.
int
XGrabServer
(
register
Display
*
dpy
)
{
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
GrabServer
,
req
);
UnlockDisplay
(
dpy
);
...
...
nx-X11/lib/X11/Imakefile
View file @
61b8d44f
...
...
@@ -147,8 +147,8 @@ EXTRA_LIBRARIES = /**/
POLL_DEFINES = -DUSE_POLL
#endif
CONN_DEFINES = $(CONNECTION_FLAGS)
XTRANS_X_DEFINES = $(XTRANS_FAILDEFINES)
XTRANS_XIM_DEFINES = $(XTRANS_FAILDEFINES)
XTRANS_X_DEFINES =
-DX11_t -DTRANS_CLIENT
$(XTRANS_FAILDEFINES)
XTRANS_XIM_DEFINES =
-DXIM_t -DTRANS_CLIENT
$(XTRANS_FAILDEFINES)
#if HasBSD44Sockets
SOCK_DEFINES = -DBSD44SOCKETS
#endif
...
...
nx-X11/lib/X11/LRGB.c
View file @
61b8d44f
...
...
@@ -795,9 +795,6 @@ LINEAR_RGB_InitSCCData(
return
(
XcmsSuccess
);
FreeBlueTblElements
:
Xfree
(
pScreenData
->
pBlueTbl
->
pBase
);
FreeBlueTbl
:
Xfree
(
pScreenData
->
pBlueTbl
);
...
...
nx-X11/lib/X11/LiHosts.c
View file @
61b8d44f
...
...
@@ -77,7 +77,7 @@ XHostAddress *XListHosts (
xListHostsReply
reply
;
unsigned
char
*
buf
,
*
bp
;
register
unsigned
i
;
register
xListHostsReq
*
req
;
_X_UNUSED
register
xListHostsReq
*
req
;
XServerInterpretedAddress
*
sip
;
*
nhosts
=
0
;
...
...
nx-X11/lib/X11/ListExt.c
View file @
61b8d44f
...
...
@@ -41,7 +41,7 @@ char **XListExtensions(
int
count
=
0
;
register
unsigned
i
;
register
int
length
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
unsigned
long
rlen
=
0
;
LockDisplay
(
dpy
);
...
...
nx-X11/lib/X11/Macros.c
View file @
61b8d44f
...
...
@@ -292,7 +292,7 @@ int XAddPixel(
int
XNoOp
(
register
Display
*
dpy
)
{
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
NoOperation
,
req
);
...
...
nx-X11/lib/X11/ModMap.c
View file @
61b8d44f
...
...
@@ -34,7 +34,7 @@ XModifierKeymap *
XGetModifierMapping
(
register
Display
*
dpy
)
{
xGetModifierMappingReply
rep
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
unsigned
long
nbytes
;
XModifierKeymap
*
res
;
...
...
@@ -84,7 +84,7 @@ XSetModifierMapping(
req
->
length
+=
mapSize
>>
2
;
req
->
numKeyPerModifier
=
modifier_map
->
max_keypermod
;
Data
(
dpy
,
modifier_map
->
modifiermap
,
mapSize
);
Data
(
dpy
,
(
const
char
*
)
modifier_map
->
modifiermap
,
mapSize
);
(
void
)
_XReply
(
dpy
,
(
xReply
*
)
&
rep
,
(
SIZEOF
(
xSetModifierMappingReply
)
-
SIZEOF
(
xReply
))
>>
2
,
xTrue
);
...
...
nx-X11/lib/X11/Pending.c
View file @
61b8d44f
...
...
@@ -41,7 +41,7 @@ int XEventsQueued (
{
int
ret_val
;
#if defined(NX_TRANS_SOCKET) && defined(NX_TRANS_TEST)
fprintf
(
stderr
,
"
\n
XEventsQueued: Called with a display at [%p].
\n
"
,
dpy
);
fprintf
(
stderr
,
"
\n
XEventsQueued: Called with a display at [%p].
\n
"
,
(
void
*
)
dpy
);
#endif
LockDisplay
(
dpy
);
...
...
@@ -50,7 +50,7 @@ int XEventsQueued (
else
ret_val
=
_XEventsQueued
(
dpy
,
mode
);
#if defined(NX_TRANS_SOCKET) && defined(NX_TRANS_TEST)
fprintf
(
stderr
,
"
\n
XEventsQueued: Going to unlock the display at [%p].
\n
"
,
dpy
);
fprintf
(
stderr
,
"
\n
XEventsQueued: Going to unlock the display at [%p].
\n
"
,
(
void
*
)
dpy
);
#endif
UnlockDisplay
(
dpy
);
return
ret_val
;
...
...
nx-X11/lib/X11/QuKeybd.c
View file @
61b8d44f
...
...
@@ -39,7 +39,7 @@ XQueryKeymap(
char
keys
[
32
])
{
xQueryKeymapReply
rep
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
QueryKeymap
,
req
);
...
...
nx-X11/lib/X11/ReconfWM.c
View file @
61b8d44f
...
...
@@ -105,7 +105,7 @@ Status XReconfigureWMWindow (
*/
{
xGetInputFocusReply
rep
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
GetEmptyReq
(
GetInputFocus
,
req
);
(
void
)
_XReply
(
dpy
,
(
xReply
*
)
&
rep
,
0
,
xTrue
);
...
...
nx-X11/lib/X11/Sync.c
View file @
61b8d44f
...
...
@@ -37,7 +37,7 @@ XSync (
Bool
discard
)
{
xGetInputFocusReply
rep
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
GetInputFocus
,
req
);
...
...
nx-X11/lib/X11/UngrabSvr.c
View file @
61b8d44f
...
...
@@ -33,7 +33,7 @@ int
XUngrabServer
(
register
Display
*
dpy
)
{
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
LockDisplay
(
dpy
);
GetEmptyReq
(
UngrabServer
,
req
);
...
...
nx-X11/lib/X11/XKBExtDev.c
View file @
61b8d44f
...
...
@@ -36,7 +36,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
/***====================================================================***/
extern
void
void
XkbNoteDeviceChanges
(
XkbDeviceChangesPtr
old
,
XkbExtensionDeviceNotifyEvent
*
new
,
unsigned
int
wanted
)
...
...
nx-X11/lib/X11/XlibInt.c
View file @
61b8d44f
...
...
@@ -874,7 +874,7 @@ void _XSeqSyncFunction(
register
Display
*
dpy
)
{
xGetInputFocusReply
rep
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
#ifdef NX_TRANS_SOCKET
#ifdef NX_TRANS_DEBUG
...
...
@@ -3743,6 +3743,8 @@ _XIOError (
dpy
->
flags
&=
~
XlibDisplayReadEvents
;
dpy
->
flags
&=
~
XlibDisplayWriting
;
dpy
->
flags
&=
~
XlibDisplayReply
;
/* shut up the compiler by returning something */
return
0
;
#else
exit
(
1
);
#endif
...
...
nx-X11/lib/X11/Xlibint.h
View file @
61b8d44f
...
...
@@ -856,7 +856,12 @@ extern int _XError(
);
extern
int
_XIOError
(
Display
*
/* dpy */
#ifdef NX_TRANS_SOCKET
);
#else
)
_X_NORETURN
;
#endif
/* NX_TRANS_SOCKET */
extern
int
(
*
_XIOErrorFunction
)(
Display
*
/* dpy */
);
...
...
nx-X11/lib/X11/cmsCmap.c
View file @
61b8d44f
...
...
@@ -181,7 +181,7 @@ CmapRecForColormap(
}
{
xGetInputFocusReply
rep
;
register
xReq
*
req
;
_X_UNUSED
register
xReq
*
req
;
GetEmptyReq
(
GetInputFocus
,
req
);
(
void
)
_XReply
(
dpy
,
(
xReply
*
)
&
rep
,
0
,
xTrue
);
...
...
nx-X11/lib/X11/imLcIm.c
View file @
61b8d44f
...
...
@@ -510,14 +510,15 @@ _XimCreateDefaultTree(
Xim
im
)
{
FILE
*
fp
=
NULL
;
char
*
name
,
*
tmpname
=
NULL
,
*
intname
;
char
*
name
,
*
tmpname
=
NULL
;
char
*
cachename
=
NULL
;
/* Should use getpwent() instead of $HOME (cross-platform?) */
char
*
home
=
getenv
(
"HOME"
);
char
*
cachedir
=
NULL
;
char
*
tmpcachedir
=
NULL
;
int
hl
=
home
?
strlen
(
home
)
:
0
;
#ifdef COMPOSECACHE
char
*
intname
;
char
*
cachedir
=
NULL
;
const
char
*
encoding
=
nl_langinfo
(
CODESET
);
uid_t
euid
=
geteuid
();
gid_t
egid
=
getegid
();
...
...
@@ -545,9 +546,9 @@ _XimCreateDefaultTree(
if
(
name
==
(
char
*
)
NULL
)
{
tmpname
=
name
=
_XlcFileName
(
im
->
core
.
lcd
,
COMPOSE_FILE
);
}
#ifdef COMPOSECACHE
intname
=
name
;
#ifdef COMPOSECACHE
if
(
getuid
()
==
euid
&&
getgid
()
==
egid
&&
euid
!=
0
)
{
char
*
c
;
/* Usage: XCOMPOSECACHE=<cachedir>[=<filename>]
...
...
nx-X11/lib/X11/lcGeneric.c
View file @
61b8d44f
...
...
@@ -1027,10 +1027,8 @@ freeByteM(
}
blst
=
codeset
->
byteM
;
for
(
i
=
0
;
i
<
codeset
->
length
;
i
++
)
{
if
(
blst
[
i
].
byteinfo
)
{
Xfree
(
blst
[
i
].
byteinfo
);
blst
[
i
].
byteinfo
=
NULL
;
}
}
Xfree
(
codeset
->
byteM
);
codeset
->
byteM
=
NULL
;
...
...
@@ -1044,20 +1042,18 @@ freeConversion(
if
(
codeset
->
mbconv
)
{
mbconv
=
codeset
->
mbconv
;
/* ... */
if
(
mbconv
->
convlist
)
{
Xfree
(
mbconv
->
convlist
);
mbconv
->
convlist
=
NULL
;
}
Xfree
(
mbconv
->
convlist
);
mbconv
->
convlist
=
NULL
;
Xfree
(
mbconv
);
codeset
->
mbconv
=
NULL
;
}
if
(
codeset
->
ctconv
)
{
ctconv
=
codeset
->
ctconv
;
/* ... */
if
(
ctconv
->
convlist
)
{
Xfree
(
ctconv
->
convlist
);
ctconv
->
convlist
=
NULL
;
}
Xfree
(
ctconv
->
convlist
);
ctconv
->
convlist
=
NULL
;
Xfree
(
ctconv
);
codeset
->
ctconv
=
NULL
;
}
...
...
@@ -1072,14 +1068,12 @@ freeExtdSegment(
return
;
}
ctextseg
=
codeset
->
ctextseg
;
if
(
ctextseg
->
name
)
{
Xfree
(
ctextseg
->
name
);
ctextseg
->
name
=
NULL
;
}
if
(
ctextseg
->
area
)
{
Xfree
(
ctextseg
->
area
);
ctextseg
->
area
=
NULL
;
}
Xfree
(
ctextseg
->
name
);
ctextseg
->
name
=
NULL
;
Xfree
(
ctextseg
->
area
);
ctextseg
->
area
=
NULL
;
Xfree
(
codeset
->
ctextseg
);
codeset
->
ctextseg
=
NULL
;
}
...
...
@@ -1093,10 +1087,10 @@ freeParseInfo(
return
;
}
parse_info
=
codeset
->
parse_info
;
if
(
parse_info
->
encoding
)
{
Xfree
(
parse_info
->
encoding
);
parse_info
->
encoding
=
NULL
;
}
Xfree
(
parse_info
->
encoding
);
parse_info
->
encoding
=
NULL
;
Xfree
(
codeset
->
parse_info
);
codeset
->
parse_info
=
NULL
;
}
...
...
@@ -1115,10 +1109,10 @@ destroy_CodeSetList(
freeConversion
(
codeset
[
i
]);
freeExtdSegment
(
codeset
[
i
]);
freeParseInfo
(
codeset
[
i
]);
if
(
codeset
[
i
]
->
charset_list
)
{
Xfree
(
codeset
[
i
]
->
charset_list
);
codeset
[
i
]
->
charset_list
=
NULL
;
}
Xfree
(
codeset
[
i
]
->
charset_list
);
codeset
[
i
]
->
charset_list
=
NULL
;
Xfree
(
codeset
[
i
]);
codeset
[
i
]
=
NULL
;
}
Xfree
(
codeset
);
gen
->
codeset_list
=
NULL
;
...
...
@@ -1130,21 +1124,20 @@ destroy_SegConv(
{
SegConv
seg
=
gen
->
segment_conv
;
int
i
;
if
(
gen
->
segment_conv_num
==
0
)
{
return
;
}
for
(
i
=
0
;
i
<
gen
->
segment_conv_num
;
i
++
)
{
if
(
seg
[
i
].
source_encoding
)
{
Xfree
(
seg
[
i
].
source_encoding
);
seg
[
i
].
source_encoding
=
NULL
;
}
if
(
seg
[
i
].
destination_encoding
)
{
Xfree
(
seg
[
i
].
destination_encoding
);
seg
[
i
].
destination_encoding
=
NULL
;
}
if
(
seg
[
i
].
conv
)
{
Xfree
(
seg
[
i
].
conv
);
seg
[
i
].
conv
=
NULL
;
}
Xfree
(
seg
[
i
].
conv
);
seg
[
i
].
conv
=
NULL
;
}
Xfree
(
seg
);
gen
->
segment_conv
=
NULL
;
}
...
...
@@ -1156,14 +1149,13 @@ destroy_gen(
XLCdGenericPart
*
gen
=
XLC_GENERIC_PART
(
lcd
);
destroy_SegConv
(
gen
);
destroy_CodeSetList
(
gen
);
if
(
gen
->
mb_parse_table
)
{
Xfree
(
gen
->
mb_parse_table
);
gen
->
mb_parse_table
=
NULL
;
}
if
(
gen
->
mb_parse_list
)
{
Xfree
(
gen
->
mb_parse_list
);
gen
->
mb_parse_list
=
NULL
;
}
Xfree
(
gen
->
mb_parse_table
);
gen
->
mb_parse_table
=
NULL
;
Xfree
(
gen
->
mb_parse_list
);
gen
->
mb_parse_list
=
NULL
;
}
/* VW/UDC end 95.01.08 */
...
...
nx-X11/programs/Xserver/Xext/security.c
View file @
61b8d44f
...
...
@@ -148,7 +148,7 @@ int (*SwappedUntrustedProcVector[256])(
* try a set of well known paths.
*/
c
onst
c
har
*
_NXGetPolicyFilePath
(
const
char
*
path
)
char
*
_NXGetPolicyFilePath
(
const
char
*
path
)
{
struct
stat
SecurityPolicyStat
;
...
...
@@ -1345,7 +1345,6 @@ SecurityCensorImage(client, pVisibleRegion, widthBytesLine, pDraw, x, y, w, h,
unsigned
int
format
;
char
*
pBuf
;
{
ScreenPtr
pScreen
=
pDraw
->
pScreen
;
RegionRec
imageRegion
;
/* region representing x,y,w,h */
RegionRec
censorRegion
;
/* region to obliterate */
BoxRec
imageBox
;
...
...
nx-X11/programs/Xserver/Xext/xcmisc.c
View file @
61b8d44f
...
...
@@ -40,11 +40,7 @@ from The Open Group.
#include <nx-X11/extensions/xcmiscstr.h>
#include "modinit.h"
#if HAVE_STDINT_H
#include <stdint.h>
#elif !defined(UINT32_MAX)
#define UINT32_MAX 0xffffffffU
#endif
#if 0
static unsigned char XCMiscCode;
...
...
nx-X11/programs/Xserver/Xi/sendexev.c
View file @
61b8d44f
...
...
@@ -149,10 +149,14 @@ ProcXSendExtensionEvent (client)
return
Success
;
}
// FIXME: ret is not initialized and should not be returned...
/*
the previous code here returned the unitialized variable ret,
so using Success we have defined returncode at least. FIXME:
Upstream works different here, we must check this!
*/
if
(
stuff
->
num_events
==
0
)
return
ret
;
/* return ret; */
return
Success
;
/* The client's event type must be one defined by an extension. */
...
...
nx-X11/programs/Xserver/dbe/dbe.c
View file @
61b8d44f
...
...
@@ -721,7 +721,7 @@ ProcDbeSwapBuffers(client)
int
error
;
unsigned
int
i
,
j
;
unsigned
int
nStuff
;
int
nStuff_i
;
/* DDX API requires int for nStuff */
REQUEST_AT_LEAST_SIZE
(
xDbeSwapBuffersReq
);
nStuff
=
stuff
->
n
;
/* use local variable for performance. */
...
...
@@ -806,10 +806,11 @@ ProcDbeSwapBuffers(client)
* could deal with cross-screen synchronization.
*/
while
(
nStuff
>
0
)
nStuff_i
=
nStuff
;
while
(
nStuff_i
>
0
)
{
pDbeScreenPriv
=
DBE_SCREEN_PRIV_FROM_WINDOW
(
swapInfo
[
0
].
pWindow
);
error
=
(
*
pDbeScreenPriv
->
SwapBuffers
)(
client
,
&
nStuff
,
swapInfo
);
error
=
(
*
pDbeScreenPriv
->
SwapBuffers
)(
client
,
&
nStuff
_i
,
swapInfo
);
if
(
error
!=
Success
)
{
free
(
swapInfo
);
...
...
nx-X11/programs/Xserver/dix/devices.c
View file @
61b8d44f
...
...
@@ -725,7 +725,7 @@ InitStringFeedbackClassDeviceStruct (
for
(
i
=
0
;
i
<
num_symbols_supported
;
i
++
)
*
(
feedc
->
ctrl
.
symbols_supported
+
i
)
=
*
symbols
++
;
for
(
i
=
0
;
i
<
max_symbols
;
i
++
)
*
(
feedc
->
ctrl
.
symbols_displayed
+
i
)
=
(
KeySym
)
NULL
;
*
(
feedc
->
ctrl
.
symbols_displayed
+
i
)
=
(
KeySym
)
0
;
feedc
->
ctrl
.
id
=
0
;
if
(
(
feedc
->
next
=
dev
->
stringfeed
)
)
feedc
->
ctrl
.
id
=
dev
->
stringfeed
->
ctrl
.
id
+
1
;
...
...
nx-X11/programs/Xserver/fb/fbbits.h
View file @
61b8d44f
...
...
@@ -829,8 +829,6 @@ POLYSEGMENT (DrawablePtr pDrawable,
ul
=
coordToInt
(
pBox
->
x1
-
xoff
,
pBox
->
y1
-
yoff
);
lr
=
coordToInt
(
pBox
->
x2
-
xoff
-
1
,
pBox
->
y2
-
yoff
-
1
);
bits
+=
bitsStride
*
yoff
+
xoff
*
MUL
;
capNotLast
=
pGC
->
capStyle
==
CapNotLast
;
while
(
nseg
--
)
...
...
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
61b8d44f
...
...
@@ -1447,7 +1447,7 @@ static void nxagentParseOptions(char *name, char *value)
tolerance_parse
=
UINT_MAX
;
fprintf
(
stderr
,
"nxagentParseOptions: Warning: value [%s] of option [%s] "
"out of range, clamped to [%u].
\n
"
,
"out of range, clamped to [%
l
u].
\n
"
,
validateString
(
value
),
validateString
(
name
),
tolerance_parse
);
}
...
...
@@ -1456,7 +1456,7 @@ static void nxagentParseOptions(char *name, char *value)
tolerance_parse
=
0
;
fprintf
(
stderr
,
"nxagentParseOptions: Warning: value [%s] of option [%s] "
"out of range, clamped to [%u].
\n
"
,
"out of range, clamped to [%
l
u].
\n
"
,
validateString
(
value
),
validateString
(
name
),
tolerance_parse
);
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Colormap.c
View file @
61b8d44f
...
...
@@ -311,7 +311,7 @@ void nxagentSetInstalledColormapWindows(ScreenPtr pScreen)
{
fprintf
(
stderr
,
"nxagentSetInstalledColormapWindows: WARNING! "
"Window at [%p] has no colormap with class [%d].
\n
"
,
pWin
,
pWin
->
drawable
.
class
);
(
void
*
)
pWin
,
pWin
->
drawable
.
class
);
}
#endif
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Display.c
View file @
61b8d44f
...
...
@@ -2468,7 +2468,6 @@ static int nxagentCheckForPixmapFormatsCompatibility()
*/
bool
compatible
=
true
;
bool
one_match
=
false
;
bool
matched
=
false
;
int
total_matches
=
0
;
...
...
@@ -2483,7 +2482,6 @@ static int nxagentCheckForPixmapFormatsCompatibility()
nxagentPixmapFormats
[
i
].
scanline_pad
==
nxagentRemotePixmapFormats
[
j
].
scanline_pad
)
{
matched
=
true
;
one_match
=
true
;
++
total_matches
;
break
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
61b8d44f
...
...
@@ -1953,7 +1953,7 @@ Bool nxagentUnrealizeWindow(pWin)
void
nxagentFrameBufferPaintWindow
(
WindowPtr
pWin
,
RegionPtr
pRegion
,
int
what
)
{
void
*
PaintWindowBackgroundBackup
;
void
(
*
PaintWindowBackgroundBackup
)(
WindowPtr
,
RegionPtr
,
int
)
;
if
(
pWin
->
backgroundState
==
BackgroundPixmap
)
{
...
...
nx-X11/programs/Xserver/xfixes/region.c
View file @
61b8d44f
...
...
@@ -753,13 +753,11 @@ ProcXFixesSetPictureClipRegion (ClientPtr client)
#ifdef RENDER
PicturePtr
pPicture
;
RegionPtr
pRegion
;
ScreenPtr
pScreen
;
REQUEST
(
xXFixesSetPictureClipRegionReq
);
REQUEST_SIZE_MATCH
(
xXFixesSetPictureClipRegionReq
);
VERIFY_PICTURE
(
pPicture
,
stuff
->
picture
,
client
,
SecurityWriteAccess
,
RenderErrBase
+
BadPicture
);
pScreen
=
pPicture
->
pDrawable
->
pScreen
;
VERIFY_REGION_OR_NONE
(
pRegion
,
stuff
->
region
,
client
,
SecurityReadAccess
);
return
SetPictureClipRegion
(
pPicture
,
stuff
->
xOrigin
,
stuff
->
yOrigin
,
...
...
nx-X11/programs/Xserver/xkb/xkb.c
View file @
61b8d44f
...
...
@@ -4402,7 +4402,7 @@ char * wire, *next;
CARD16
len
;
wire
=
*
wire_inout
;
len
=
(
CARD16
*
)
wire
;
len
=
*
(
CARD16
*
)
wire
;
if
(
client
->
swapped
)
{
swaps
(
&
len
);
}
...
...
nx-X11/programs/Xserver/xkb/xkmread.c
View file @
61b8d44f
...
...
@@ -1085,7 +1085,8 @@ unsigned i,size_toc;
}
return
0
;
}
fread
(
file_info
,
SIZEOF
(
xkmFileInfo
),
1
,
file
);
_X_UNUSED
int
ignored_result
;
ignored_result
=
fread
(
file_info
,
SIZEOF
(
xkmFileInfo
),
1
,
file
);
size_toc
=
file_info
->
num_toc
;
if
(
size_toc
>
max_toc
)
{
#ifdef DEBUG
...
...
@@ -1095,7 +1096,7 @@ unsigned i,size_toc;
size_toc
=
max_toc
;
}
for
(
i
=
0
;
i
<
size_toc
;
i
++
)
{
fread
(
&
toc
[
i
],
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
ignored_result
=
fread
(
&
toc
[
i
],
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
}
return
1
;
}
...
...
@@ -1126,7 +1127,8 @@ int nRead;
return
0
;
}
fseek
(
file
,
toc
->
offset
,
SEEK_SET
);
fread
(
&
tmpTOC
,
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
_X_UNUSED
int
ignored_result
;
ignored_result
=
fread
(
&
tmpTOC
,
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
nRead
=
SIZEOF
(
xkmSectionInfo
);
if
((
tmpTOC
.
type
!=
toc
->
type
)
||
(
tmpTOC
.
format
!=
toc
->
format
)
||
(
tmpTOC
.
size
!=
toc
->
size
)
||
(
tmpTOC
.
offset
!=
toc
->
offset
))
{
...
...
@@ -1201,7 +1203,8 @@ char name[100];
case
XkmSymbolsIndex
:
case
XkmGeometryIndex
:
fseek
(
file
,
toc
->
offset
,
SEEK_SET
);
fread
(
&
tmpTOC
,
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
_X_UNUSED
int
ignored_result
;
ignored_result
=
fread
(
&
tmpTOC
,
SIZEOF
(
xkmSectionInfo
),
1
,
file
);
if
((
tmpTOC
.
type
!=
toc
->
type
)
||
(
tmpTOC
.
format
!=
toc
->
format
)
||
(
tmpTOC
.
size
!=
toc
->
size
)
||
(
tmpTOC
.
offset
!=
toc
->
offset
))
{
_XkbLibError
(
_XkbErrIllegalContents
,
"XkmReadFileSectionName"
,
0
);
...
...
nxcomp/Loop.cpp
View file @
61b8d44f
...
...
@@ -10201,7 +10201,7 @@ int SetCore()
if
(
getrlimit
(
RLIMIT_CORE
,
&
rlim
))
{
#ifdef TEST
*
logofs
<<
"Cannot read RLIMIT_CORE. Error is '"
*
logofs
<<
"
Loop:
Cannot read RLIMIT_CORE. Error is '"
<<
ESTR
()
<<
"'.
\n
"
<<
logofs_flush
;
#endif
...
...
@@ -10215,7 +10215,7 @@ int SetCore()
if
(
setrlimit
(
RLIMIT_CORE
,
&
rlim
))
{
#ifdef TEST
*
logofs
<<
"Loop: Cannot
read
RLIMIT_CORE. Error is '"
*
logofs
<<
"Loop: Cannot
set
RLIMIT_CORE. Error is '"
<<
ESTR
()
<<
"'.
\n
"
<<
logofs_flush
;
#endif
...
...
@@ -10224,7 +10224,7 @@ int SetCore()
}
#ifdef TEST
*
logofs
<<
"Loop:
Set RLIMIT_CORE to
"
<<
rlim
.
rlim_max
*
logofs
<<
"Loop:
RLIMIT_CORE is
"
<<
rlim
.
rlim_max
<<
".
\n
"
<<
logofs_flush
;
#endif
...
...
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