diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-30 11:15:16 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-30 11:15:16 +0100 |
commit | c3059736cbbc58a8ee4a15bd139d652dd9e06772 (patch) | |
tree | ca803667c2e3d346a7f1dd24c591d5feb536990c /common/eurephiadb_session_common.c | |
parent | f183be8286789874978b68653cc36720db912f16 (diff) | |
download | eurephia-c3059736cbbc58a8ee4a15bd139d652dd9e06772.tar.gz eurephia-c3059736cbbc58a8ee4a15bd139d652dd9e06772.tar.xz eurephia-c3059736cbbc58a8ee4a15bd139d652dd9e06772.zip |
Fixed core dump issue with eDBstore_session_value(...) / (*eDBstore_session_value)(...)
Diffstat (limited to 'common/eurephiadb_session_common.c')
-rw-r--r-- | common/eurephiadb_session_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/eurephiadb_session_common.c b/common/eurephiadb_session_common.c index 8fdcbc1..213a60e 100644 --- a/common/eurephiadb_session_common.c +++ b/common/eurephiadb_session_common.c @@ -29,13 +29,13 @@ #include <eurephia_log.h> #include <eurephia_values.h> #include <eurephiadb_session_struct.h> -#include <eurephiadb_session_common.h> +#ifndef DRIVER_MODE // Do not add this declaration if we are compiling a driver // Functions needed to be found in the database driver -extern int eDBstore_session_value(eurephiaCTX *ctx, eurephiaSESSION *session, int mode, - const char *key, const char *val); - +int (*eDBstore_session_value) (eurephiaCTX *ctx, eurephiaSESSION *session, int mode, + const char *key, const char *val); +#endif // Adds or updates a key in the eurephiaVALUES stack. Database is updated before the stack is updated. // If database fails, the stack is not updated. |