Commit 4c8568ca authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Keyboard.c: use "\0" instead of "0"

parent bbe2c2ab
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment