diff options
author | David Shah <dave@ds0.me> | 2019-09-11 09:57:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-11 09:57:30 +0100 |
commit | c7f1368cd273f1d84507d29548f3420a08a82702 (patch) | |
tree | e309451ee79c7329dc87457bdc08debfcd9bd8ab /misc/launcher.c | |
parent | 486cbddd26a8db5bb2f2bbe3ea15e36b6c53a55e (diff) | |
parent | 702ce405c18c2c28e7f5d354451141d8f16a4085 (diff) | |
download | yosys-c7f1368cd273f1d84507d29548f3420a08a82702.tar.gz yosys-c7f1368cd273f1d84507d29548f3420a08a82702.tar.bz2 yosys-c7f1368cd273f1d84507d29548f3420a08a82702.zip |
Merge pull request #1362 from xobs/smtbmc-msvc2-build-fixes
MSVC2 fixes
Diffstat (limited to 'misc/launcher.c')
-rw-r--r-- | misc/launcher.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/launcher.c b/misc/launcher.c index e0d8208f1..49d6414e7 100644 --- a/misc/launcher.c +++ b/misc/launcher.c @@ -65,7 +65,7 @@ SOFTWARE. */ int child_pid=0; -int fail(char *format, char *data) { +int fail(const char *format, const char *data) { /* Print error message to stderr and return 2 */ fprintf(stderr, format, data); return 2; @@ -76,7 +76,7 @@ char *quoted(char *data) { /* We allocate twice as much space as needed to deal with worse-case of having to escape everything. */ - char *result = calloc(ln*2+3, sizeof(char)); + char *result = (char *)calloc(ln*2+3, sizeof(char)); char *presult = result; *presult++ = '"'; @@ -120,7 +120,7 @@ char *loadable_exe(char *exename) { if (!hPython) return NULL; */ /* Return the absolute filename for spawnv */ - result = calloc(MAX_PATH, sizeof(char)); + result = (char *)calloc(MAX_PATH, sizeof(char)); strncpy(result, exename, MAX_PATH); /*if (result) GetModuleFileNameA(hPython, result, MAX_PATH); @@ -158,7 +158,7 @@ char **parse_argv(char *cmdline, int *argc) { /* Parse a command line in-place using MS C rules */ - char **result = calloc(strlen(cmdline), sizeof(char *)); + char **result = (char **)calloc(strlen(cmdline), sizeof(char *)); char *output = cmdline; char c; int nb = 0; |