diff options
author | monty@tik.mysql.com <> | 2000-10-11 00:06:37 +0300 |
---|---|---|
committer | monty@tik.mysql.com <> | 2000-10-11 00:06:37 +0300 |
commit | 09dce662e273113029cc404af07d82b9c9c56fb6 (patch) | |
tree | cf18eb0d045153270d68aec8884a4732e953e883 /mysys/mf_tempfile.c | |
parent | 16f11f94b2fa7c7fca19fb5160b27c902c446a3c (diff) | |
download | mariadb-git-09dce662e273113029cc404af07d82b9c9c56fb6.tar.gz |
Automatic repair of MyISAM tables + portability fixes
Diffstat (limited to 'mysys/mf_tempfile.c')
-rw-r--r-- | mysys/mf_tempfile.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mysys/mf_tempfile.c b/mysys/mf_tempfile.c index 8370c6e7ec8..44826ad57c2 100644 --- a/mysys/mf_tempfile.c +++ b/mysys/mf_tempfile.c @@ -36,7 +36,8 @@ extern char **environ; */ File create_temp_file(char *to, const char *dir, const char *prefix, - int mode, myf MyFlags) + int mode __attribute__((unused)), + myf MyFlags __attribute__((unused))) { File file= -1; DBUG_ENTER("open_temp_file"); @@ -85,12 +86,12 @@ File create_temp_file(char *to, const char *dir, const char *prefix, } #elif defined(HAVE_MKSTEMP) { - char prefix[30]; + char prefix_buff[30]; uint pfx_len; - pfx_len=(strmov(strnmov(prefix, + pfx_len=(strmov(strnmov(prefix_buff, prefix ? prefix : "tmp.", - sizeof(prefix)-7),"XXXXXX") - prefix); + sizeof(prefix_buff)-7),"XXXXXX") - prefix_buff); if (!dir && ! (dir =getenv("TMPDIR"))) dir=P_tmpdir; if (strlen(dir)+ pfx_len > FN_REFLEN-2) |