aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-01-02 21:11:56 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-01-05 21:44:12 +0100
commit4c8568caa62a83a9e0bf3aa3f5566c7dd2f8062f (patch)
treeee10e331dab442ba513894c07acc393ee0b393fb /nx-X11/programs/Xserver
parentbbe2c2ab97b9882738b9ea985b5e1a3f86006999 (diff)
downloadnx-libs-4c8568caa62a83a9e0bf3aa3f5566c7dd2f8062f.tar.gz
nx-libs-4c8568caa62a83a9e0bf3aa3f5566c7dd2f8062f.tar.bz2
nx-libs-4c8568caa62a83a9e0bf3aa3f5566c7dd2f8062f.zip
Keyboard.c: use "\0" instead of "0"
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Args.c6
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keyboard.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Args.c b/nx-X11/programs/Xserver/hw/nxagent/Args.c
index 97260d747..ea3c7ae26 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.c
@@ -1496,7 +1496,7 @@ static void nxagentParseOptionString(char *string)
if (delimiter)
{
- *delimiter = 0;
+ *delimiter = '\0';
}
else
{
@@ -1509,7 +1509,7 @@ static void nxagentParseOptionString(char *string)
if (delimiter)
{
- *delimiter = 0;
+ *delimiter = '\0';
value = delimiter + 1;
}
else
@@ -1650,7 +1650,7 @@ void nxagentProcessOptionsFile(char * filename)
for (offset = 0; (offset < sizeOfFile) && (data[offset] != '\n'); offset++);
- data[offset] = 0;
+ data[offset] = '\0';
nxagentParseOptionString(data);
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 756613ab1..d5aae2eae 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -584,9 +584,9 @@ XkbError:
(strcmp(nxagentKeyboard, "query") != 0) &&
(strcmp(nxagentKeyboard, "clone") != 0))
{
- for (i = 0; nxagentKeyboard[i] != '/' && nxagentKeyboard[i] != 0; i++);
+ for (i = 0; nxagentKeyboard[i] != '/' && nxagentKeyboard[i] != '\0'; i++);
- if (nxagentKeyboard[i] == 0 || nxagentKeyboard[i + 1] == 0 || i == 0)
+ if (nxagentKeyboard[i] == '\0' || nxagentKeyboard[i + 1] == '\0' || i == 0)
{
ErrorF("Warning: Wrong keyboard type: %s.\n", nxagentKeyboard);
goto XkbError;