Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Aug 2021 13:38:42 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4544929cb55e - main - Silence unused parameter warnings in fspacectl(2) bootstrap stub
Message-ID:  <202108281338.17SDcgnx054621@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=4544929cb55e0cb8496ec23e565aab8251e22e81

commit 4544929cb55e0cb8496ec23e565aab8251e22e81
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2021-08-28 13:37:24 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-08-28 13:37:43 +0000

    Silence unused parameter warnings in fspacectl(2) bootstrap stub
    
    While here, replace spaces with tabs and add a newline at EOF.
    
    Fixes:          5425ba8332571e57f9fe623346cb9d83293264d4
    MFC after:      3 days
---
 tools/build/fspacectl.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tools/build/fspacectl.c b/tools/build/fspacectl.c
index c17802c51e01..13abca23a318 100644
--- a/tools/build/fspacectl.c
+++ b/tools/build/fspacectl.c
@@ -36,9 +36,10 @@ __FBSDID("$FreeBSD$");
  * This is currently a stub implementation of fspacectl(2).
  */
 int
-fspacectl(int fd, int cmd, const struct spacectl_range *rqsr, int flags,
-    struct spacectl_range *rmsr)
+fspacectl(int fd __unused, int cmd __unused,
+    const struct spacectl_range *rqsr __unused, int flags __unused,
+    struct spacectl_range *rmsr __unused)
 {
-        errno = ENOSYS;
-        return (-1);
-}
\ No newline at end of file
+	errno = ENOSYS;
+	return (-1);
+}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108281338.17SDcgnx054621>