Commit 03ebe6f2 authored by Simon Matter's avatar Simon Matter Committed by Mike Gabriel

nxproxy/src/Main.c: Silence compiler warning.

Fixes ArcticaProject/nx-libs#506.
parent b3f2e300
...@@ -41,6 +41,7 @@ int main(int argc, const char **argv) ...@@ -41,6 +41,7 @@ int main(int argc, const char **argv)
char *options = NULL; char *options = NULL;
unsigned long int nx_commfd;
char *nx_commfd_str = NULL; char *nx_commfd_str = NULL;
options = getenv("NX_DISPLAY"); options = getenv("NX_DISPLAY");
...@@ -48,7 +49,7 @@ int main(int argc, const char **argv) ...@@ -48,7 +49,7 @@ int main(int argc, const char **argv)
if ((nx_commfd_str = getenv("NX_COMMFD")) != NULL) if ((nx_commfd_str = getenv("NX_COMMFD")) != NULL)
{ {
errno = 0; errno = 0;
unsigned long int nx_commfd = strtoul(nx_commfd_str, NULL, 10); nx_commfd = strtoul(nx_commfd_str, NULL, 10);
if ((errno) && (0 == nx_commfd)) if ((errno) && (0 == nx_commfd))
{ {
......
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