summaryrefslogtreecommitdiff
path: root/include/my_sys.h
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2013-06-28 01:53:41 +0300
committerMichael Widenius <monty@askmonty.org>2013-06-28 01:53:41 +0300
commitecf9b1b754a2d67137f0b16661309d021560ad2d (patch)
treed6da9cce825a146ef8432d38fb9dc0d5b81b9a2a /include/my_sys.h
parent70092601bc3fa0fbae06b12c1e77b81d05bc3224 (diff)
downloadmariadb-git-ecf9b1b754a2d67137f0b16661309d021560ad2d.tar.gz
Fixed some wrong format strings.
Fixed OPTIMIZE with innodb include/my_sys.h: Removed ATTRIBUTE_FORMAT() as it gave warnings for %'s sql/log_event.cc: Optimization: use my_b_write() and my_b_write_byte() instead of my_b_printf() use strmake() instead of my_snprintf() sql/sql_admin.cc: Fixed bug in admin_recreate_table() Fixed OPTIMIZE with innodb sql/sql_table.cc: Indentation fixes strings/my_vsnprintf.c: Changed fprintf() to fputs()
Diffstat (limited to 'include/my_sys.h')
-rw-r--r--include/my_sys.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/my_sys.h b/include/my_sys.h
index 1a9c5f887a8..f08362be908 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -782,8 +782,7 @@ extern size_t my_b_gets(IO_CACHE *info, char *to, size_t max_length);
extern my_off_t my_b_filelength(IO_CACHE *info);
extern size_t my_b_write_backtick_quote(IO_CACHE *info, const char *str,
size_t len);
-extern size_t my_b_printf(IO_CACHE *info, const char* fmt, ...)
- ATTRIBUTE_FORMAT(printf, 2, 3);
+extern size_t my_b_printf(IO_CACHE *info, const char* fmt, ...);
extern size_t my_b_vprintf(IO_CACHE *info, const char* fmt, va_list ap);
extern my_bool open_cached_file(IO_CACHE *cache,const char *dir,
const char *prefix, size_t cache_size,