From e66e9ee7e6bfacedd7e2fa0bd6b80bd3b7356eae Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Tue, 9 Oct 2018 11:49:47 -0500 Subject: [PATCH] xfsprogs: use ANSI declarations of void-arg functions Fixes sparse warnings about this. Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- db/io.h | 2 +- io/init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/io.h b/db/io.h index a60aaaaf4..8d5720bf9 100644 --- a/db/io.h +++ b/db/io.h @@ -59,7 +59,7 @@ extern void xfs_verify_recalc_crc(struct xfs_buf *bp); * returns -1 for unchecked, 0 for bad and 1 for good */ static inline int -iocur_crc_valid() +iocur_crc_valid(void) { if (!iocur_top->bp) return -1; diff --git a/io/init.c b/io/init.c index e9449a28e..29afe09a6 100644 --- a/io/init.c +++ b/io/init.c @@ -244,7 +244,7 @@ idle_loop(void *arg) } void -start_idle_thread() +start_idle_thread(void) { pthread_t t; -- 2.50.1