Change the signature of pthreadpool_finished_job() to return 0
[mat/samba.git] / source3 / lib / fncall.c
index 6e6b7c92504f7c1553b73a6a67891f4a65cc471b..79bf8260d9393ca315fe6363de4d81973bfac3ca 100644 (file)
@@ -280,8 +280,7 @@ static void fncall_handler(struct tevent_context *ev, struct tevent_fd *fde,
        int i, num_pending;
        int job_id;
 
-       job_id = pthreadpool_finished_job(ctx->pool);
-       if (job_id <= 0) {
+       if (pthreadpool_finished_job(ctx->pool, &job_id) != 0) {
                return;
        }