Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librefuse librefuse: fix lint warnings about void functi...



details:   https://anonhg.NetBSD.org/src/rev/ae666362427a
branches:  trunk
changeset: 359806:ae666362427a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jan 23 21:07:28 2022 +0000

description:
librefuse: fix lint warnings about void function returning a value

lib/librefuse/refuse_compat.c(155):
    error: void function fuse_unmount cannot return value [213]
lib/librefuse/refuse/v30.c(57):
    error: void function fuse_destroy_v30 cannot return value [213]

diffstat:

 lib/librefuse/refuse/v30.c    |  6 +++---
 lib/librefuse/refuse_compat.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 877848c89d33 -r ae666362427a lib/librefuse/refuse/v30.c
--- a/lib/librefuse/refuse/v30.c        Sun Jan 23 18:59:18 2022 +0000
+++ b/lib/librefuse/refuse/v30.c        Sun Jan 23 21:07:28 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: v30.c,v 1.1 2022/01/22 08:09:40 pho Exp $ */
+/* $NetBSD: v30.c,v 1.2 2022/01/23 21:07:28 rillig Exp $ */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: v30.c,v 1.1 2022/01/22 08:09:40 pho Exp $");
+__RCSID("$NetBSD: v30.c,v 1.2 2022/01/23 21:07:28 rillig Exp $");
 #endif /* !lint */
 
 #include <fuse_internal.h>
@@ -54,7 +54,7 @@
 
 void
 fuse_destroy_v30(struct fuse *fuse) {
-    return __fuse_destroy(fuse);
+    __fuse_destroy(fuse);
 }
 
 int
diff -r 877848c89d33 -r ae666362427a lib/librefuse/refuse_compat.c
--- a/lib/librefuse/refuse_compat.c     Sun Jan 23 18:59:18 2022 +0000
+++ b/lib/librefuse/refuse_compat.c     Sun Jan 23 21:07:28 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: refuse_compat.c,v 1.2 2022/01/22 08:09:39 pho Exp $ */
+/* $NetBSD: refuse_compat.c,v 1.3 2022/01/23 21:07:28 rillig Exp $ */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: refuse_compat.c,v 1.2 2022/01/22 08:09:39 pho Exp $");
+__RCSID("$NetBSD: refuse_compat.c,v 1.3 2022/01/23 21:07:28 rillig Exp $");
 #endif /* !lint */
 
 #include <fuse_internal.h>
@@ -152,7 +152,7 @@
     " include <fuse.h> for correct reference")
 void
 fuse_unmount(struct fuse* fuse) {
-    return fuse_unmount_v30(fuse);
+    fuse_unmount_v30(fuse);
 }
 
 /* librefuse once had a function fuse_unmount_compat22() which was an



Home | Main Index | Thread Index | Old Index