diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-12-30 22:54:48 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-01-15 16:26:31 +0100 |
commit | f4adcbc596e3563b3fcad75e862b7be3a969f969 (patch) | |
tree | 016a35b408ca1c8ebf0ebbac3ee45ffe453eba9a | |
parent | fbc4a915850d24cd76cac543042541c9ebfeb5bf (diff) | |
download | nx-libs-f4adcbc596e3563b3fcad75e862b7be3a969f969.tar.gz nx-libs-f4adcbc596e3563b3fcad75e862b7be3a969f969.tar.bz2 nx-libs-f4adcbc596e3563b3fcad75e862b7be3a969f969.zip |
nxagent: make nxagentUserDefinedFontPath a Boolean
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Args.c | 4 | ||||
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Args.h | 2 | ||||
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Init.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Args.c b/nx-X11/programs/Xserver/hw/nxagent/Args.c index a18b4f0f9..ee76fc795 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Args.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Args.c @@ -116,7 +116,7 @@ is" without express or implied warranty. #undef DISABLE_SMART_SCHEDULE -int nxagentUserDefinedFontPath = 0; +Bool nxagentUserDefinedFontPath = False; /* * From X11/ImUtil.c. @@ -558,7 +558,7 @@ int ddxProcessArgument(int argc, char *argv[], int i) fprintf(stderr, "ddxProcessArgument: User defined font path [%s].\n", argv[i]); #endif - nxagentUserDefinedFontPath = 1; + nxagentUserDefinedFontPath = True; defaultFontPath = argv[i]; } else diff --git a/nx-X11/programs/Xserver/hw/nxagent/Args.h b/nx-X11/programs/Xserver/hw/nxagent/Args.h index c8f8907c3..aebb521a6 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Args.h +++ b/nx-X11/programs/Xserver/hw/nxagent/Args.h @@ -97,7 +97,7 @@ void nxagentSetCoalescence(void); void nxagentShowVersionInfo(void); -extern int nxagentUserDefinedFontPath; +extern Bool nxagentUserDefinedFontPath; extern int nxagentRemoteMajor; diff --git a/nx-X11/programs/Xserver/hw/nxagent/Init.c b/nx-X11/programs/Xserver/hw/nxagent/Init.c index b6901cb38..d760b0c6a 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Init.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Init.c @@ -251,7 +251,7 @@ void InitOutput(ScreenInfo *scrInfo, int argc, char *argv[]) AddCallback(&ServerGrabCallback, nxagentGrabServerCallback, NULL); } - if (nxagentUserDefinedFontPath == 0) + if (!nxagentUserDefinedFontPath) { #ifdef TEST fprintf(stderr, "InitOutput: Calling nxagentVerifyDefaultFontPath.\n"); |