From ff0079350ea5070b495dc772bf3cfab63faa3daa Mon Sep 17 00:00:00 2001 From: Mark Vitale Date: Tue, 7 Jan 2025 10:25:17 -0500 Subject: [PATCH] budb: Correct arguments to pthread_create() In order to eliminate warnings: "./../budb/dbs_dump.c", line 164: warning: argument #3 is incompatible with prototype: "./../budb/dbs_dump.c", line 186: warning: argument #3 is incompatible with prototype: remove the superfluous casts from the third argument. Change-Id: I841a41a0c1ccffe25861f79b3b7a9671b509d5d6 Reviewed-on: https://gerrit.openafs.org/16060 Tested-by: BuildBot Reviewed-by: Ben Huntsman Reviewed-by: Michael Meffie Reviewed-by: Cheyenne Wills --- src/budb/dbs_dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/budb/dbs_dump.c b/src/budb/dbs_dump.c index 0d70837139..0f4cb87383 100644 --- a/src/budb/dbs_dump.c +++ b/src/budb/dbs_dump.c @@ -163,7 +163,7 @@ DumpDB(struct rx_call *call, PTHREAD_CREATE_DETACHED) == 0); opr_Verify(pthread_create(&dumperPid, &dumperPid_tattr, - (void *)setupDbDump, NULL) == 0); + setupDbDump, NULL) == 0); #else code = @@ -185,7 +185,7 @@ DumpDB(struct rx_call *call, PTHREAD_CREATE_DETACHED) == 0); opr_Verify(pthread_create(&watcherPid, &watcherPid_tattr, - (void *)dumpWatcher, NULL) == 0); + dumpWatcher, NULL) == 0); #else /* now create the watcher thread */ code =