]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:client:http_test fix Non-boolean returned
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 15 Jan 2026 03:08:22 +0000 (16:08 +1300)
committerAnoop C S <anoopcs@samba.org>
Thu, 15 Jan 2026 08:15:34 +0000 (08:15 +0000)
fix cppcheck

source4/client/http_test.c:85:3: style: Non-boolean value returned from
    function returning bool [returnNonBoolInBooleanFunction]

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15924

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source4/client/http_test.c

index 158b2d1a8dfd2384d538910c6ca86ffc2586cefe..b2c4c04cb85c8af956ae016e37a447ec0d9e5994 100644 (file)
@@ -82,7 +82,7 @@ static bool send_http_request(TALLOC_CTX *mem_ctx,
                                response_size);
        if (!req) {
                DBG_ERR("no memory\n");
-               return -1;
+               return false;
        }
 
        if (!tevent_req_set_endtime(req, ev_ctx, timeval_current_ofs(10, 0))) {