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
99fb9817
Commit
99fb9817
authored
Feb 26, 2018
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hw/nxagent/: Use <function>(void) rather than <function>().
parent
deeac7e0
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
94 additions
and
94 deletions
+94
-94
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+6
-6
Atoms.c
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
+2
-2
Binder.c
nx-X11/programs/Xserver/hw/nxagent/Binder.c
+1
-1
Client.c
nx-X11/programs/Xserver/hw/nxagent/Client.c
+1
-1
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+1
-1
Composite.c
nx-X11/programs/Xserver/hw/nxagent/Composite.c
+2
-2
Cursor.c
nx-X11/programs/Xserver/hw/nxagent/Cursor.c
+2
-2
Dialog.c
nx-X11/programs/Xserver/hw/nxagent/Dialog.c
+1
-1
Display.c
nx-X11/programs/Xserver/hw/nxagent/Display.c
+19
-19
Drawable.c
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
+2
-2
Error.c
nx-X11/programs/Xserver/hw/nxagent/Error.c
+2
-2
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+9
-9
Extensions.c
nx-X11/programs/Xserver/hw/nxagent/Extensions.c
+1
-1
Font.c
nx-X11/programs/Xserver/hw/nxagent/Font.c
+2
-2
GC.c
nx-X11/programs/Xserver/hw/nxagent/GC.c
+3
-3
Image.c
nx-X11/programs/Xserver/hw/nxagent/Image.c
+2
-2
Init.c
nx-X11/programs/Xserver/hw/nxagent/Init.c
+6
-6
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+1
-1
Options.c
nx-X11/programs/Xserver/hw/nxagent/Options.c
+4
-4
Pixmap.c
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+5
-5
Reconnect.c
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+2
-2
Render.c
nx-X11/programs/Xserver/hw/nxagent/Render.c
+3
-3
Rootless.c
nx-X11/programs/Xserver/hw/nxagent/Rootless.c
+4
-4
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+2
-2
Split.c
nx-X11/programs/Xserver/hw/nxagent/Split.c
+5
-5
Visual.c
nx-X11/programs/Xserver/hw/nxagent/Visual.c
+1
-1
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+3
-3
Z.c
nx-X11/programs/Xserver/hw/nxagent/compext/Z.c
+2
-2
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
99fb9817
...
...
@@ -2081,7 +2081,7 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
return
useNXTrans
;
}
void
ddxUseMsg
()
void
ddxUseMsg
(
void
)
{
ErrorF
(
"-display string display name of the real server
\n
"
);
ErrorF
(
"-sync synchronize with the real server
\n
"
);
...
...
@@ -2122,7 +2122,7 @@ void ddxUseMsg()
ErrorF
(
"-version show version information and exit
\n
"
);
}
static
int
nxagentGetDialogName
()
static
int
nxagentGetDialogName
(
void
)
{
if
(
*
nxagentSessionId
!=
'\0'
)
{
...
...
@@ -2306,7 +2306,7 @@ void nxagentSetPackMethod(void)
* of involved drawables.
*/
void
nxagentSetDeferLevel
()
void
nxagentSetDeferLevel
(
void
)
{
int
deferLevel
;
int
tileWidth
;
...
...
@@ -2486,7 +2486,7 @@ void nxagentSetDeferLevel()
}
}
void
nxagentSetBufferSize
()
void
nxagentSetBufferSize
(
void
)
{
int
size
;
...
...
@@ -2545,7 +2545,7 @@ void nxagentSetBufferSize()
}
}
void
nxagentSetScheduler
()
void
nxagentSetScheduler
(
void
)
{
/*
* The smart scheduler is the default.
...
...
@@ -2561,7 +2561,7 @@ void nxagentSetScheduler()
}
}
void
nxagentSetCoalescence
()
void
nxagentSetCoalescence
(
void
)
{
int
timeout
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
View file @
99fb9817
...
...
@@ -114,7 +114,7 @@ static void catchAndRedirect(Display* dpy, XErrorEvent* X)
}
}
static
void
startWMDetection
()
static
void
startWMDetection
(
void
)
{
/*
* We are trying to detect if is there any client
...
...
@@ -420,7 +420,7 @@ static void nxagentWriteAtom(Atom local, Atom remote, const char *string, Bool d
* the Xserver values and the atom names.
*/
void
nxagentResetAtomMap
()
void
nxagentResetAtomMap
(
void
)
{
unsigned
i
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Binder.c
View file @
99fb9817
...
...
@@ -133,7 +133,7 @@ int nxagentCheckBinder(int argc, char *argv[], int i)
return
0
;
}
int
nxagentBinderLoop
()
int
nxagentBinderLoop
(
void
)
{
struct
timeval
timeout
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Client.c
View file @
99fb9817
...
...
@@ -253,7 +253,7 @@ void nxagentCheckIfShadowAgent(ClientPtr client)
}
}
void
nxagentWakeupByReconnect
()
void
nxagentWakeupByReconnect
(
void
)
{
int
i
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
99fb9817
...
...
@@ -1027,7 +1027,7 @@ void nxagentNotifySelection(XEvent *X)
* requests from real X clients.
*/
void
nxagentResetSelectionOwner
()
void
nxagentResetSelectionOwner
(
void
)
{
int
i
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Composite.c
View file @
99fb9817
...
...
@@ -50,7 +50,7 @@
int
nxagentCompositeEnable
=
UNDEFINED
;
void
nxagentCompositeExtensionInit
()
void
nxagentCompositeExtensionInit
(
void
)
{
/*
* Set the flag only if the initialization
...
...
@@ -115,7 +115,7 @@ void nxagentCompositeExtensionInit()
#endif
}
void
nxagentRedirectDefaultWindows
()
void
nxagentRedirectDefaultWindows
(
void
)
{
int
i
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Cursor.c
View file @
99fb9817
...
...
@@ -392,7 +392,7 @@ void nxagentReconnectCursor(void * p0, XID x1, void * p2)
* The parameter is ignored at the moment.
*/
void
nxagentReDisplayCurrentCursor
()
void
nxagentReDisplayCurrentCursor
(
void
)
{
CursorPtr
pCursor
=
GetSpriteCursor
();
...
...
@@ -518,7 +518,7 @@ void nxagentDisconnectCursor(void * p0, XID x1, void * p2)
}
}
Bool
nxagentDisconnectAllCursor
()
Bool
nxagentDisconnectAllCursor
(
void
)
{
int
i
;
Bool
r
=
True
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Dialog.c
View file @
99fb9817
...
...
@@ -525,7 +525,7 @@ void nxagentTerminateDialog(DialogType type)
#endif
}
void
nxagentTerminateDialogs
()
void
nxagentTerminateDialogs
(
void
)
{
DialogType
type
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Display.c
View file @
99fb9817
...
...
@@ -200,7 +200,7 @@ unsigned long startTime;
extern
void
RejectWellKnownSockets
(
void
);
extern
Bool
nxagentReportWindowIds
;
int
nxagentServerOrder
()
int
nxagentServerOrder
(
void
)
{
int
whichbyte
=
1
;
...
...
@@ -800,7 +800,7 @@ static int nxagentDisplayErrorPredicate(Display *display, int error)
return
error
;
}
void
nxagentInstallDisplayHandlers
()
void
nxagentInstallDisplayHandlers
(
void
)
{
/*
* If the display was already opened, be sure
...
...
@@ -849,7 +849,7 @@ void nxagentInstallDisplayHandlers()
NXSetDisplayErrorPredicate
(
nxagentDisplayErrorPredicate
);
}
void
nxagentPostInstallDisplayHandlers
()
void
nxagentPostInstallDisplayHandlers
(
void
)
{
/*
* This is executed after having opened the
...
...
@@ -880,7 +880,7 @@ FIXME: What is the most appropriate number of elements?
XSetErrorHandler
(
nxagentErrorHandler
);
}
void
nxagentResetDisplayHandlers
()
void
nxagentResetDisplayHandlers
(
void
)
{
if
(
nxagentDisplay
!=
NULL
)
{
...
...
@@ -934,7 +934,7 @@ void nxagentResetDisplayHandlers()
nxagentDispatch
.
start
=
0
;
}
void
nxagentInstallSignalHandlers
()
void
nxagentInstallSignalHandlers
(
void
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentInstallSignalHandlers: Installing the agent signal handlers.
\n
"
);
...
...
@@ -1040,7 +1040,7 @@ void nxagentInstallSignalHandlers()
}
}
void
nxagentPostInstallSignalHandlers
()
void
nxagentPostInstallSignalHandlers
(
void
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentPostInstallSignalHandlers: Dealing with the proxy signal handlers.
\n
"
);
...
...
@@ -1079,7 +1079,7 @@ void nxagentPostInstallSignalHandlers()
*/
}
void
nxagentResetSignalHandlers
()
void
nxagentResetSignalHandlers
(
void
)
{
struct
sigaction
newAction
;
...
...
@@ -1553,7 +1553,7 @@ void nxagentInitVisuals(void)
nxagentSetDefaultVisual
();
}
void
nxagentInitDepths
()
void
nxagentInitDepths
(
void
)
{
#ifdef TEST
int
i
;
...
...
@@ -1586,7 +1586,7 @@ void nxagentInitDepths()
#endif
}
void
nxagentInitPixmapFormats
()
void
nxagentInitPixmapFormats
(
void
)
{
int
i
,
j
;
int
depth
;
...
...
@@ -1673,7 +1673,7 @@ XXX: Some X server doesn't list 1 among available depths...
#endif
}
void
nxagentSetDefaultDrawables
()
void
nxagentSetDefaultDrawables
(
void
)
{
int
i
,
j
;
...
...
@@ -1744,7 +1744,7 @@ void nxagentSetDefaultDrawables()
}
}
void
nxagentCloseDisplay
()
void
nxagentCloseDisplay
(
void
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentCloseDisplay: Called with full generation [%d] and display [%p].
\n
"
,
...
...
@@ -1984,7 +1984,7 @@ Bool nxagentMakeIcon(Display *display, Pixmap *nxIcon, Pixmap *nxMask)
return
success
;
}
Bool
nxagentXServerGeometryChanged
()
Bool
nxagentXServerGeometryChanged
(
void
)
{
return
(
WidthOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
))
!=
WidthOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplayBackup
)))
||
...
...
@@ -2124,7 +2124,7 @@ void nxagentDisconnectDisplay(void)
reconnectDisplayState
=
NOTHING
;
}
static
int
nxagentCheckForDefaultDepthCompatibility
()
static
int
nxagentCheckForDefaultDepthCompatibility
(
void
)
{
/*
* Depending on the (reconnect) tolerance checks value, this
...
...
@@ -2190,7 +2190,7 @@ static int nxagentCheckForDefaultDepthCompatibility()
}
}
static
int
nxagentCheckForDepthsCompatibility
()
static
int
nxagentCheckForDepthsCompatibility
(
void
)
{
/*
* Depending on the (reconnect) tolerance checks value, this
...
...
@@ -2348,7 +2348,7 @@ static int nxagentCheckForDepthsCompatibility()
return
(
ret
);
}
static
int
nxagentCheckForPixmapFormatsCompatibility
()
static
int
nxagentCheckForPixmapFormatsCompatibility
(
void
)
{
/*
* Depending on the (reconnect) tolerance checks value, this
...
...
@@ -2881,7 +2881,7 @@ Bool nxagentReconnectDisplay(void *p0)
return
True
;
}
void
nxagentAddXConnection
()
void
nxagentAddXConnection
(
void
)
{
int
fd
=
XConnectionNumber
(
nxagentDisplay
);
...
...
@@ -2895,7 +2895,7 @@ void nxagentAddXConnection()
SetNotifyFd
(
XConnectionNumber
(
nxagentDisplay
),
nxagentNotifyConnection
,
X_NOTIFY_READ
,
NULL
);
}
void
nxagentRemoveXConnection
()
void
nxagentRemoveXConnection
(
void
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentRemoveXConnection: Removing the X connection [%d] "
...
...
@@ -2912,7 +2912,7 @@ void nxagentRemoveXConnection()
* NX transport is terminated first.
*/
void
nxagentWaitDisplay
()
void
nxagentWaitDisplay
(
void
)
{
/*
* Disable the smart scheduler's interrupts.
...
...
@@ -2962,7 +2962,7 @@ void nxagentWaitDisplay()
* the Xlib display connection.
*/
void
nxagentAbortDisplay
()
void
nxagentAbortDisplay
(
void
)
{
/*
* Be sure the X server socket in .X11-unix is
...
...
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
View file @
99fb9817
...
...
@@ -2593,7 +2593,7 @@ void nxagentCorruptedRegionOnWindow(void *p0, XID x, void *p2)
RegionUninit
(
&
visRegion
);
}
void
nxagentRegionsOnScreen
()
void
nxagentRegionsOnScreen
(
void
)
{
FindClientResourcesByType
(
clients
[
serverClient
->
index
],
RT_NX_CORR_WINDOW
,
nxagentCorruptedRegionOnWindow
,
NULL
);
...
...
@@ -3024,7 +3024,7 @@ void nxagentUnmarkExposedRegion(WindowPtr pWin, RegionPtr pRegion, RegionPtr pOt
}
}
int
nxagentSynchronizationPredicate
()
int
nxagentSynchronizationPredicate
(
void
)
{
if
(
nxagentCorruptedWindows
==
0
&&
nxagentCorruptedBackgrounds
==
0
&&
...
...
nx-X11/programs/Xserver/hw/nxagent/Error.c
View file @
99fb9817
...
...
@@ -247,7 +247,7 @@ int nxagentExitHandler(const char *message)
return
0
;
}
void
nxagentOpenClientsLogFile
()
void
nxagentOpenClientsLogFile
(
void
)
{
if
(
*
nxagentClientsLogName
==
'\0'
)
{
...
...
@@ -577,7 +577,7 @@ char *nxagentGetSessionPath(void)
return
sessionPath
;
}
void
nxagentGetClientsPath
()
void
nxagentGetClientsPath
(
void
)
{
if
(
*
nxagentClientsLogName
==
'\0'
)
...
...
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
99fb9817
...
...
@@ -281,7 +281,7 @@ int nxagentCheckWindowConfiguration(XConfigureEvent* X);
void
nxagentRemoveDuplicatedKeys
(
XEvent
*
X
);
void
ProcessInputEvents
()
void
ProcessInputEvents
(
void
)
{
#ifdef NX_DEBUG_INPUT
if
(
nxagentDebugInput
==
1
)
...
...
@@ -734,7 +734,7 @@ int nxagentInputEventPredicate(Display *display, XEvent *event, XPointer paramet
}
}
void
nxagentInitDefaultEventMask
()
void
nxagentInitDefaultEventMask
(
void
)
{
Mask
mask
=
NoEventMask
;
...
...
@@ -3698,7 +3698,7 @@ int nxagentHandleReparentNotify(XEvent* X)
return
1
;
}
void
nxagentEnableKeyboardEvents
()
void
nxagentEnableKeyboardEvents
(
void
)
{
int
i
;
Mask
mask
;
...
...
@@ -3719,7 +3719,7 @@ void nxagentEnableKeyboardEvents()
NXAGENT_KEYBOARD_EXTENSION_EVENT_MASK
);
}
void
nxagentDisableKeyboardEvents
()
void
nxagentDisableKeyboardEvents
(
void
)
{
int
i
;
Mask
mask
;
...
...
@@ -3738,7 +3738,7 @@ void nxagentDisableKeyboardEvents()
XkbSelectEvents
(
nxagentDisplay
,
XkbUseCoreKbd
,
0x0
,
0x0
);
}
void
nxagentEnablePointerEvents
()
void
nxagentEnablePointerEvents
(
void
)
{
int
i
;
Mask
mask
;
...
...
@@ -3755,7 +3755,7 @@ void nxagentEnablePointerEvents()
}
}
void
nxagentDisablePointerEvents
()
void
nxagentDisablePointerEvents
(
void
)
{
int
i
;
Mask
mask
;
...
...
@@ -3793,7 +3793,7 @@ void nxagentSendFakeKey(int key)
mieqEnqueue
(
&
fake
);
}
int
nxagentInitXkbKeyboardState
()
int
nxagentInitXkbKeyboardState
(
void
)
{
XEvent
X
;
...
...
@@ -3954,7 +3954,7 @@ void nxagentUngrabPointerAndKeyboard(XEvent *X)
XUngrabPointer
(
nxagentDisplay
,
now
);
}
void
nxagentDeactivatePointerGrab
()
void
nxagentDeactivatePointerGrab
(
void
)
{
GrabPtr
grab
=
inputInfo
.
pointer
->
grab
;
...
...
@@ -4595,7 +4595,7 @@ void nxagentGuessDumpInputInfo(ClientPtr client, Atom property, char *data)
}
}
void
nxagentDeactivateInputDevicesGrabs
()
void
nxagentDeactivateInputDevicesGrabs
(
void
)
{
fprintf
(
stderr
,
"Info: Deactivating input devices grabs.
\n
"
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Extensions.c
View file @
99fb9817
...
...
@@ -82,7 +82,7 @@ void DarwinHandleGUI(int argc, char *argv[])
{
}
void
DarwinGlxExtensionInit
()
void
DarwinGlxExtensionInit
(
void
)
{
GlxExtensionInit
();
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Font.c
View file @
99fb9817
...
...
@@ -1252,7 +1252,7 @@ static void nxagentFailedFontReconnect(FontPtr pFont, XID param1, void * param2)
return
;
}
static
void
nxagentFreeFailedToReconnectFonts
()
static
void
nxagentFreeFailedToReconnectFonts
(
void
)
{
free
(
nxagentFailedToReconnectFonts
.
font
);
nxagentFailedToReconnectFonts
.
font
=
NULL
;
...
...
@@ -1371,7 +1371,7 @@ Bool nxagentReconnectFailedFonts(void *p0)
return
True
;
}
Bool
nxagentDisconnectAllFonts
()
Bool
nxagentDisconnectAllFonts
(
void
)
{
int
cid
;
Bool
fontSuccess
=
True
;
...
...
nx-X11/programs/Xserver/hw/nxagent/GC.c
View file @
99fb9817
...
...
@@ -962,7 +962,7 @@ static void nxagentAddGCToList(GCPtr pGC)
nxagentGCList
.
size
++
;
}
void
nxagentFreeGCList
()
void
nxagentFreeGCList
(
void
)
{
struct
nxagentGCRec
*
tempGC
;
...
...
@@ -977,7 +977,7 @@ void nxagentFreeGCList()
}
}
static
void
nxagentRestoreGCList
()
static
void
nxagentRestoreGCList
(
void
)
{
struct
nxagentGCRec
*
tempGC
;
...
...
@@ -1215,7 +1215,7 @@ void nxagentDisconnectGC(void * p0, XID x1, void * p2)
}
}
Bool
nxagentDisconnectAllGCs
()
Bool
nxagentDisconnectAllGCs
(
void
)
{
int
cid
;
Bool
success
=
True
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Image.c
View file @
99fb9817
...
...
@@ -1616,7 +1616,7 @@ void nxagentGetImage(DrawablePtr pDrawable, int x, int y, int w, int h,
* to the new proxy.
*/
void
nxagentResetVisualCache
()
void
nxagentResetVisualCache
(
void
)
{
int
i
;
...
...
@@ -1626,7 +1626,7 @@ void nxagentResetVisualCache()
}
}
void
nxagentResetAlphaCache
()
void
nxagentResetAlphaCache
(
void
)
{
int
i
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Init.c
View file @
99fb9817
...
...
@@ -470,7 +470,7 @@ void InitInput(argc, argv)
* by FatalError().
*/
void
AbortDDX
()
void
AbortDDX
(
void
)
{
nxagentDoFullGeneration
=
True
;
...
...
@@ -492,7 +492,7 @@ void AbortDDX()
* Called by GiveUp().
*/
void
ddxGiveUp
()
void
ddxGiveUp
(
void
)
{
AbortDDX
();
}
...
...
@@ -501,12 +501,12 @@ void ddxBeforeReset(void)
{
}
void
OsVendorInit
()
void
OsVendorInit
(
void
)
{
return
;
}
void
OsVendorFatalError
()
void
OsVendorFatalError
(
void
)
{
/*
* Let the session terminate gracely
...
...
@@ -538,12 +538,12 @@ void OsVendorVErrorFFunction(const char *f, va_list args)
}
}
void
OsVendorStartRedirectErrorFFunction
()
void
OsVendorStartRedirectErrorFFunction
(
void
)
{
nxagentStartRedirectToClientsLog
();
}
void
OsVendorEndRedirectErrorFFunction
()
void
OsVendorEndRedirectErrorFFunction
(
void
)
{
nxagentEndRedirectToClientsLog
();
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
99fb9817
...
...
@@ -1435,7 +1435,7 @@ void nxagentCheckModifierMasks(CARD8 keycode, int j)
}
void
nxagentCheckRemoteKeycodes
()
void
nxagentCheckRemoteKeycodes
(
void
)
{
nxagentCapsLockKeycode
=
XKeysymToKeycode
(
nxagentDisplay
,
XK_Caps_Lock
);
nxagentNumLockKeycode
=
XKeysymToKeycode
(
nxagentDisplay
,
XK_Num_Lock
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Options.c
View file @
99fb9817
...
...
@@ -56,7 +56,7 @@ unsigned int nxagentPrintGeometryFlags = 0;
* the options repository to the default values.
*/
void
nxagentInitOptions
()
void
nxagentInitOptions
(
void
)
{
nxagentOptions
.
LinkType
=
UNDEFINED
;
...
...
@@ -183,7 +183,7 @@ void nxagentInitOptions()
* ting.
*/
void
nxagentResetOptions
()
void
nxagentResetOptions
(
void
)
{
if
(
nxagentLockDeferLevel
==
0
)
{
...
...
@@ -201,12 +201,12 @@ void nxagentResetOptions()
nxagentOptions
.
KeycodeConversion
=
DEFAULT_KEYCODE_CONVERSION
;
}
void
nxagentSaveOptions
()
void
nxagentSaveOptions
(
void
)
{
memcpy
(
&
nxagentOptionsBackup
,
&
nxagentOptions
,
sizeof
(
AgentOptionsRec
));
}
void
nxagentRestoreOptions
()
void
nxagentRestoreOptions
(
void
)
{
nxagentOptions
.
DeferLevel
=
nxagentOptionsBackup
.
DeferLevel
;
nxagentOptions
.
DeferTimeout
=
nxagentOptionsBackup
.
DeferTimeout
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
View file @
99fb9817
...
...
@@ -788,7 +788,7 @@ void nxagentDisconnectPixmap(void *p0, XID x1, void *p2)
}
}
Bool
nxagentDisconnectAllPixmaps
()
Bool
nxagentDisconnectAllPixmaps
(
void
)
{
int
r
=
1
;
int
i
;
...
...
@@ -1185,7 +1185,7 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
return
integrity
;
}
Bool
nxagentCheckAllPixmapIntegrity
()
Bool
nxagentCheckAllPixmapIntegrity
(
void
)
{
int
i
;
Bool
imageIsGood
=
True
;
...
...
@@ -1445,7 +1445,7 @@ FIXME: If the pixmap has a different depth from the window, the
return
True
;
}
Bool
nxagentFbOnShadowDisplay
()
Bool
nxagentFbOnShadowDisplay
(
void
)
{
static
Display
*
shadow
;
static
Window
win
;
...
...
@@ -1608,7 +1608,7 @@ Bool nxagentFbOnShadowDisplay()
#ifdef DEBUG
void
nxagentPrintResourceTypes
()
void
nxagentPrintResourceTypes
(
void
)
{
fprintf
(
stderr
,
"nxagentPrintResourceTypes: RT_PIXMAP [%lu].
\n
"
,
(
unsigned
long
)
RT_PIXMAP
);
fprintf
(
stderr
,
"nxagentPrintResourceTypes: RT_NX_PIXMAP [%lu].
\n
"
,
(
unsigned
long
)
RT_NX_PIXMAP
);
...
...
@@ -1627,7 +1627,7 @@ void nxagentPrintResourcePredicate(void *value, XID id, XID type, void *cdata)
(
void
*
)
value
,
(
unsigned
long
)
id
,
(
unsigned
long
)
type
);
}
void
nxagentPrintResources
()
void
nxagentPrintResources
(
void
)
{
Bool
result
;
int
i
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
View file @
99fb9817
...
...
@@ -321,7 +321,7 @@ TODO: This should be reset only when
return
0
;
}
void
nxagentInitializeRecLossyLevel
()
void
nxagentInitializeRecLossyLevel
(
void
)
{
*
(
int
*
)
reconnectLossyLevel
[
DISPLAY_STEP
]
=
0
;
*
(
int
*
)
reconnectLossyLevel
[
SCREEN_STEP
]
=
0
;
...
...
@@ -805,7 +805,7 @@ static char* nxagentGetReconnectError()
return
nxagentReconnectErrorMessage
;
}
void
nxagentHandleConnectionChanges
()
void
nxagentHandleConnectionChanges
(
void
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentHandleConnectionChanges: Called.
\n
"
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Render.c
View file @
99fb9817
...
...
@@ -447,7 +447,7 @@ nxagentCleanGlyphs(xGlyphInfo *gi,
#endif
/* #ifdef NXAGENT_RENDER_CLEANUP */
void
nxagentRenderExtensionInit
()
void
nxagentRenderExtensionInit
(
void
)
{
int
first_event
,
first_error
;
int
major_version
,
minor_version
;
...
...
@@ -2303,7 +2303,7 @@ void nxagentTriFan(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
#endif
}
void
nxagentQueryFormats
()
void
nxagentQueryFormats
(
void
)
{
XRenderInfo
*
xri
;
XExtDisplayInfo
*
info
=
NULL
;
...
...
@@ -3006,7 +3006,7 @@ void nxagentDisconnectPicture(void * p0, XID x1, void* p2)
nxagentPicture
(
pPicture
)
=
None
;
}
Bool
nxagentDisconnectAllPicture
()
Bool
nxagentDisconnectAllPicture
(
void
)
{
int
i
;
Bool
r
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Rootless.c
View file @
99fb9817
...
...
@@ -118,7 +118,7 @@ static void nxagentRemovePropertyFromList(void);
static
void
nxagentPrintRootlessTopLevelWindowMap
(
void
);
void
nxagentPrintRootlessTopLevelWindowMap
()
void
nxagentPrintRootlessTopLevelWindowMap
(
void
)
{
int
i
;
...
...
@@ -245,7 +245,7 @@ void nxagentCirculateRootlessWindows(int direction)
#ifdef DEBUG
Bool
nxagentRootlessTreesMatch
()
Bool
nxagentRootlessTreesMatch
(
void
)
{
Window
root_return
;
Window
parent_return
;
...
...
@@ -1178,7 +1178,7 @@ static struct{
* Removing first element from list.
*/
void
nxagentRemovePropertyFromList
()
void
nxagentRemovePropertyFromList
(
void
)
{
struct
nxagentPropertyRec
*
tmp
=
nxagentPropertyList
.
first
;
...
...
@@ -1242,7 +1242,7 @@ void nxagentAddPropertyToList(Atom property, WindowPtr pWin)
nxagentPropertyList
.
size
++
;
}
void
nxagentFreePropertyList
()
void
nxagentFreePropertyList
(
void
)
{
while
(
nxagentPropertyList
.
size
!=
0
)
{
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
99fb9817
...
...
@@ -367,7 +367,7 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after XReparentWind
}
}
Window
nxagentCreateIconWindow
()
Window
nxagentCreateIconWindow
(
void
)
{
XSetWindowAttributes
attributes
;
unsigned
long
valuemask
;
...
...
@@ -4547,7 +4547,7 @@ void nxagentShadowAdaptToRatio(void)
RegionUninit
(
&
region
);
}
void
nxagentPrintGeometry
()
void
nxagentPrintGeometry
(
void
)
{
int
i
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Split.c
View file @
99fb9817
...
...
@@ -71,7 +71,7 @@ DrawablePtr nxagentSplitDrawable(DrawablePtr pDrawable)
}
}
void
nxagentInitSplitResources
()
void
nxagentInitSplitResources
(
void
)
{
int
resource
;
...
...
@@ -93,7 +93,7 @@ void nxagentInitSplitResources()
}
}
SplitResourcePtr
nxagentAllocSplitResource
()
SplitResourcePtr
nxagentAllocSplitResource
(
void
)
{
int
resource
;
...
...
@@ -193,14 +193,14 @@ void nxagentFreeSplitResource(SplitResourcePtr pResource)
pResource
->
gc
=
NULL
;
}
void
nxagentInitUnpackResources
()
void
nxagentInitUnpackResources
(
void
)
{
/*
FIXME: This must be implemented.
*/
}
UnpackResourcePtr
nxagentAllocUnpackResource
()
UnpackResourcePtr
nxagentAllocUnpackResource
(
void
)
{
/*
FIXME: This must be implemented.
...
...
@@ -1173,7 +1173,7 @@ FIXME: Implementing the valid region policy
#endif
}
void
nxagentHandleEmptySplitEvent
()
void
nxagentHandleEmptySplitEvent
(
void
)
{
/*
FIXME: Should run a consistency check here.
...
...
nx-X11/programs/Xserver/hw/nxagent/Visual.c
View file @
99fb9817
...
...
@@ -145,7 +145,7 @@ Visual *nxagentVisualFromDepth(ScreenPtr pScreen, int depth)
* of the remote display.
*/
void
nxagentInitAlphaVisual
()
void
nxagentInitAlphaVisual
(
void
)
{
nxagentAlphaVisual
.
visualid
=
XAllocID
(
nxagentDisplay
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
99fb9817
...
...
@@ -548,7 +548,7 @@ void nxagentSetVersionProperty(WindowPtr pWin)
#endif
}
Bool
nxagentSomeWindowsAreMapped
()
Bool
nxagentSomeWindowsAreMapped
(
void
)
{
WindowPtr
pWin
=
screenInfo
.
screens
[
0
]
->
root
->
firstChild
;
...
...
@@ -2524,7 +2524,7 @@ void nxagentUnmapWindows(void)
NXFlushDisplay
(
nxagentDisplay
,
NXFlushLink
);
}
void
nxagentMapDefaultWindows
()
void
nxagentMapDefaultWindows
(
void
)
{
int
i
;
...
...
@@ -3930,7 +3930,7 @@ int nxagentRemoveItemBSPixmapList(unsigned long pixmapId)
return
0
;
}
int
nxagentEmptyBSPixmapList
()
int
nxagentEmptyBSPixmapList
(
void
)
{
int
i
;
...
...
nx-X11/programs/Xserver/hw/nxagent/compext/Z.c
View file @
99fb9817
...
...
@@ -239,7 +239,7 @@ int ZDeflate(char *dest, unsigned int *destLen, const char *source, unsigned int
return
result
;
}
int
ZInitEncoder
()
int
ZInitEncoder
(
void
)
{
if
(
zInitialized
==
0
)
{
...
...
@@ -284,7 +284,7 @@ int ZInitEncoder()
return
zInitialized
;
}
int
ZResetEncoder
()
int
ZResetEncoder
(
void
)
{
int
result
;
...
...
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