From 22a3c5b6fead0289474b3f632d95376a749e7687 Mon Sep 17 00:00:00 2001 From: troky Date: Thu, 22 May 2014 09:55:43 +0200 Subject: [PATCH] Reverting 83d71da. VS2010 fix. --- sgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgminer.c b/sgminer.c index 8fbd7031..185f0e0e 100644 --- a/sgminer.c +++ b/sgminer.c @@ -7941,7 +7941,7 @@ int main(int argc, char *argv[]) quithere(1, "Failed to pthread_mutex_init lockstat_lock errno=%d", errno); #endif - initial_args = (char **)malloc(sizeof(char *)* (argc + 1)); + initial_args = (const char **)malloc(sizeof(char *)* (argc + 1)); for (i = 0; i < argc; i++) initial_args[i] = strdup(argv[i]); initial_args[argc] = NULL;