From: Andrew Bartlett Date: Mon, 23 Apr 2012 02:21:35 +0000 (+1000) Subject: s3-dbwrap: A void function can not return a value X-Git-Tag: samba-4.0.0alpha20~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3969cc28e8c33a65f659dbea34486a912103a2bf;p=thirdparty%2Fsamba.git s3-dbwrap: A void function can not return a value Only non-gcc compilers seem to notice this as an error. Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Mon Apr 23 05:58:52 CEST 2012 on sn-devel-104 --- diff --git a/source3/lib/dbwrap/dbwrap_cache.c b/source3/lib/dbwrap/dbwrap_cache.c index 28249464de8..865fcff7a1d 100644 --- a/source3/lib/dbwrap/dbwrap_cache.c +++ b/source3/lib/dbwrap/dbwrap_cache.c @@ -178,7 +178,7 @@ static void dbwrap_cache_id(struct db_context *db, const uint8_t **id, { struct db_cache_ctx *ctx = talloc_get_type_abort( db->private_data, struct db_cache_ctx); - return dbwrap_db_id(ctx->backing, id, idlen); + dbwrap_db_id(ctx->backing, id, idlen); } struct db_context *db_open_cache(TALLOC_CTX *mem_ctx,