From 90c5ef1fa77469050d223107075968d5d2e9f1f2 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Thu, 26 Apr 2012 14:55:03 -0400 Subject: [PATCH] Bugfix: Make initial_args a const char** to satisfy exec argument type warning (on Windows only) --- cgminer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 341dff83..faf0f31d 100644 --- a/cgminer.c +++ b/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);