From: Srikanth Raju Date: Thu, 26 Nov 2009 02:51:45 +0000 (+0530) Subject: Sql: Rollback should return void X-Git-Tag: 1.1.0-ff~2345 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2aa8e5b6df96c9cd40dece76fb1774b16409e1d8;p=vlc Sql: Rollback should return void Signed-off-by: RĂ©mi Denis-Courmont --- diff --git a/include/vlc_sql.h b/include/vlc_sql.h index 3b123a94ab..ad325f5d14 100644 --- a/include/vlc_sql.h +++ b/include/vlc_sql.h @@ -110,7 +110,7 @@ struct sql_t int (*pf_commit) ( sql_t* ); /** Rollback transaction */ - int (*pf_rollback) ( sql_t* ); + void (*pf_rollback) ( sql_t* ); /** Create a statement object */ sql_stmt_t* (*pf_prepare) ( sql_t* p_sql, const char* p_fmt, @@ -295,7 +295,7 @@ static inline int sql_CommitTransaction( sql_t *p_sql ) * @return VLC error code or success * @note This function is threadsafe **/ -static inline int sql_RollbackTransaction( sql_t *p_sql ) +static inline void sql_RollbackTransaction( sql_t *p_sql ) { return p_sql->pf_rollback( p_sql ); }