]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: use ANSI declarations of void-arg functions
authorEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
Fixes sparse warnings about this.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/io.h
io/init.c

diff --git a/db/io.h b/db/io.h
index a60aaaaf4729333f09a335a6bb4d90e97c182da7..8d5720bf942de6b3a6a5709ca845bf3c2484d3a9 100644 (file)
--- 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;
index e9449a28ec85d37234e1123c45db1b4e75a41211..29afe09a6a29b8de7f714de672f04612574f81db 100644 (file)
--- 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;