s3-dbwrap: A void function can not return a value
authorAndrew Bartlett <abartlet@samba.org>
Mon, 23 Apr 2012 02:21:35 +0000 (12:21 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 23 Apr 2012 03:58:52 +0000 (05:58 +0200)
Only non-gcc compilers seem to notice this as an error.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Apr 23 05:58:52 CEST 2012 on sn-devel-104

source3/lib/dbwrap/dbwrap_cache.c

index 28249464de826fe95e001b8a5a05c34f8e7e5c21..865fcff7a1d3c1291629780e96c80c75bdf3f47a 100644 (file)
@@ -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,