Commit fe5904fb authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Fix the type in set_errcall. Addresses #246.

git-svn-id: file:///svn/tokudb@1529 c7de825b-a66e-492c-adef-691d508d4ae1
parent cc83b4e3
...@@ -84,7 +84,7 @@ void sample_db_env_offsets (void) { ...@@ -84,7 +84,7 @@ void sample_db_env_offsets (void) {
STRUCT_SETUP(DB_ENV, set_errcall, "void (*%s) (DB_ENV *, void (*)(const char *, char *))"); STRUCT_SETUP(DB_ENV, set_errcall, "void (*%s) (DB_ENV *, void (*)(const char *, char *))");
#endif #endif
#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 #if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3
STRUCT_SETUP(DB_ENV, set_errcall, "void (*%s) (DB_ENV *, void (*)(DB_ENV *, const char *, const char *))"); STRUCT_SETUP(DB_ENV, set_errcall, "void (*%s) (DB_ENV *, void (*)(const DB_ENV *, const char *, const char *))");
#endif #endif
STRUCT_SETUP(DB_ENV, set_errfile, "void (*%s) (DB_ENV *, FILE*)"); STRUCT_SETUP(DB_ENV, set_errfile, "void (*%s) (DB_ENV *, FILE*)");
STRUCT_SETUP(DB_ENV, set_errpfx, "void (*%s) (DB_ENV *, const char *)"); STRUCT_SETUP(DB_ENV, set_errpfx, "void (*%s) (DB_ENV *, const char *)");
......
...@@ -14,7 +14,7 @@ struct fieldinfo db_env_fields32[] = { ...@@ -14,7 +14,7 @@ struct fieldinfo db_env_fields32[] = {
{"void (*err) (const DB_ENV *, int, const char *, ...)", 288, 4}, {"void (*err) (const DB_ENV *, int, const char *, ...)", 288, 4},
{"int (*open) (DB_ENV *, const char *, u_int32_t, int)", 296, 4}, {"int (*open) (DB_ENV *, const char *, u_int32_t, int)", 296, 4},
{"int (*set_data_dir) (DB_ENV *, const char *)", 336, 4}, {"int (*set_data_dir) (DB_ENV *, const char *)", 336, 4},
{"void (*set_errcall) (DB_ENV *, void (*)(DB_ENV *, const char *, const char *))", 348, 4}, {"void (*set_errcall) (DB_ENV *, void (*)(const DB_ENV *, const char *, const char *))", 348, 4},
{"void (*set_errfile) (DB_ENV *, FILE*)", 356, 4}, {"void (*set_errfile) (DB_ENV *, FILE*)", 356, 4},
{"void (*set_errpfx) (DB_ENV *, const char *)", 364, 4}, {"void (*set_errpfx) (DB_ENV *, const char *)", 364, 4},
{"int (*get_flags) (DB_ENV *, u_int32_t *)", 372, 4}, {"int (*get_flags) (DB_ENV *, u_int32_t *)", 372, 4},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment