diff options
author | Simon Matter <simon.matter@invoca.ch> | 2017-09-29 12:31:01 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-09-29 12:31:01 +0200 |
commit | 03ebe6f258ef29fc2bb6dc10fb9b829213dfd780 (patch) | |
tree | f17da184f79c64384b7a94f994efcc8903a8458f /nxproxy/src/Main.c | |
parent | b3f2e3006804e38f0b44ac467ee8a9c50c276bcf (diff) | |
download | nx-libs-03ebe6f258ef29fc2bb6dc10fb9b829213dfd780.tar.gz nx-libs-03ebe6f258ef29fc2bb6dc10fb9b829213dfd780.tar.bz2 nx-libs-03ebe6f258ef29fc2bb6dc10fb9b829213dfd780.zip |
nxproxy/src/Main.c: Silence compiler warning.
Fixes ArcticaProject/nx-libs#506.
Diffstat (limited to 'nxproxy/src/Main.c')
-rw-r--r-- | nxproxy/src/Main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nxproxy/src/Main.c b/nxproxy/src/Main.c index d9fb1ef4f..dc4e0fd68 100644 --- a/nxproxy/src/Main.c +++ b/nxproxy/src/Main.c @@ -41,6 +41,7 @@ int main(int argc, const char **argv) char *options = NULL; + unsigned long int nx_commfd; char *nx_commfd_str = NULL; options = getenv("NX_DISPLAY"); @@ -48,7 +49,7 @@ int main(int argc, const char **argv) if ((nx_commfd_str = getenv("NX_COMMFD")) != NULL) { 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)) { |