diff options
author | Michael Widenius <monty@mysql.com> | 2009-01-12 13:12:00 +0200 |
---|---|---|
committer | Michael Widenius <monty@mysql.com> | 2009-01-12 13:12:00 +0200 |
commit | dd5b9fc6cd620d0826a10e184c0082880f97513d (patch) | |
tree | 94c74d793c73010314d54c106176bdbf89f2b87f /mysys/my_static.c | |
parent | 7eda7f1337e633d473e432e9c74b3d2383b2f938 (diff) | |
parent | 7dc83c50436a36280e99f9c71006b05452d0b9fe (diff) | |
download | mariadb-git-dd5b9fc6cd620d0826a10e184c0082880f97513d.tar.gz |
Merge with base MySQL-5.1-maria
Diffstat (limited to 'mysys/my_static.c')
-rw-r--r-- | mysys/my_static.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/mysys/my_static.c b/mysys/my_static.c index ef25a89bad9..04bda8d2dcc 100644 --- a/mysys/my_static.c +++ b/mysys/my_static.c @@ -70,8 +70,8 @@ uint sf_malloc_prehunc=0, /* If you have problem with core- */ sf_malloc_endhunc=0, /* dump when malloc-message.... */ /* set theese to 64 or 128 */ sf_malloc_quick=0; /* set if no calls to sanity */ -ulong sf_malloc_cur_memory= 0L; /* Current memory usage */ -ulong sf_malloc_max_memory= 0L; /* Maximum memory usage */ +size_t sf_malloc_cur_memory= 0L; /* Current memory usage */ +size_t sf_malloc_max_memory= 0L; /* Maximum memory usage */ uint sf_malloc_count= 0; /* Number of times NEW() was called */ uchar *sf_min_adress= (uchar*) ~(unsigned long) 0L, *sf_max_adress= (uchar*) 0L; @@ -92,6 +92,18 @@ int (*error_handler_hook)(uint error,const char *str,myf MyFlags)= int (*fatal_error_handler_hook)(uint error,const char *str,myf MyFlags)= my_message_no_curses; +static const char *proc_info_dummy(void *a __attribute__((unused)), + const char *b __attribute__((unused)), + const char *c __attribute__((unused)), + const char *d __attribute__((unused)), + const unsigned int e __attribute__((unused))) +{ + return 0; +} + +const char *(*proc_info_hook)(void *, const char *, const char *, const char *, + const unsigned int)= proc_info_dummy; + #ifdef __WIN__ /* from my_getsystime.c */ ulonglong query_performance_frequency, query_performance_offset; |