The branch main has been updated by emaste:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7bfe5e45153b3d214cdb09ced8fccdef02337369

commit 7bfe5e45153b3d214cdb09ced8fccdef02337369
Author:     Ed Maste <[email protected]>
AuthorDate: 2022-04-01 01:36:55 +0000
Commit:     Ed Maste <[email protected]>
CommitDate: 2022-04-01 01:37:57 +0000

    Apply some style(9) to pthread tests
    
    Reported by:    kib
    Fixes:          ef135466f81b ("Clean up warnings in pthread tests")
    Sponsored by:   The FreeBSD Foundation
---
 tools/regression/pthread/cv_cancel1/cv_cancel1.c             | 3 ++-
 tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/regression/pthread/cv_cancel1/cv_cancel1.c 
b/tools/regression/pthread/cv_cancel1/cv_cancel1.c
index 140f55168dbb..fdc50a866411 100644
--- a/tools/regression/pthread/cv_cancel1/cv_cancel1.c
+++ b/tools/regression/pthread/cv_cancel1/cv_cancel1.c
@@ -51,7 +51,8 @@ thr_routine(void *arg __unused)
        return (NULL);
 }
 
-int main(int argc __unused, char **argv __unused)
+int
+main(void)
 {
        pthread_t td;
        int i;
diff --git a/tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c 
b/tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
index 9eefef84ecf0..381921c38a06 100644
--- a/tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
+++ b/tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
@@ -46,7 +46,7 @@ thread(void *arg)
 }
 
 int
-main(int argc __unused, char *argv[] __unused)
+main(void)
 {
        pthread_t thr;
        pthread_mutex_t mtx;

Reply via email to