diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-08 09:55:55 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-08 09:55:55 +0900 |
| commit | f9d1d722171be76329d10aae94e602f560243f7b (patch) | |
| tree | 0ca218df017aadd637b4c7b64f99389d0e6ce5e5 | |
| parent | 36a0b864ba76add2d9b4117eff592d017be46533 (diff) | |
| download | mruby-f9d1d722171be76329d10aae94e602f560243f7b.tar.gz mruby-f9d1d722171be76329d10aae94e602f560243f7b.zip | |
Avoid VC++ reserved word `template`.
| -rw-r--r-- | mrbgems/mruby-io/test/mruby_io_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mrbgems/mruby-io/test/mruby_io_test.c b/mrbgems/mruby-io/test/mruby_io_test.c index 29d91f536..2c9efbe85 100644 --- a/mrbgems/mruby-io/test/mruby_io_test.c +++ b/mrbgems/mruby-io/test/mruby_io_test.c @@ -16,12 +16,12 @@ typedef int mode_t; static int mkstemp(char *p) { - char *template, *path; + char *temp, *path; int fd; - template = _strdup(p); - if (template == NULL) return -1; - path = _mktemp(template); + temp = _strdup(p); + if (temp == NULL) return -1; + path = _mktemp(temp); if (path[0] == 0) { free(path); return -1; @@ -32,9 +32,9 @@ mkstemp(char *p) } static char* -mkdtemp(char *template) +mkdtemp(char *temp) { - char *path = _mktemp(template); + char *path = _mktemp(temp); if (path[0] == 0) return NULL; if (_mkdir(path) < 0) return NULL; return path; |
