From 03ebe6f258ef29fc2bb6dc10fb9b829213dfd780 Mon Sep 17 00:00:00 2001
From: Simon Matter <simon.matter@invoca.ch>
Date: Fri, 29 Sep 2017 12:31:01 +0200
Subject: nxproxy/src/Main.c: Silence compiler warning.

 Fixes ArcticaProject/nx-libs#506.
---
 nxproxy/src/Main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'nxproxy/src')

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))
     {
-- 
cgit v1.2.3