Browse Source

Bugfix: Make initial_args a const char** to satisfy exec argument type warning (on Windows only)

Luke Dashjr 14 years ago
parent
commit
90c5ef1fa7
1 changed files with 5 additions and 1 deletions
  1. 5 1
      cgminer.c

+ 5 - 1
cgminer.c

@@ -1971,7 +1971,11 @@ void kill_work(void)
 	quit(0, "Shutdown signal received.");
 }
 
-static char **initial_args;
+static
+#ifdef WIN32
+const
+#endif
+char **initial_args;
 
 static void clean_up(void);