git: 4544929cb55e - main - Silence unused parameter warnings in fspacectl(2) bootstrap stub

Dimitry Andric dim at FreeBSD.org
Sat Aug 28 13:38:42 UTC 2021


The branch main has been updated by dim:

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

commit 4544929cb55e0cb8496ec23e565aab8251e22e81
Author:     Dimitry Andric <dim at FreeBSD.org>
AuthorDate: 2021-08-28 13:37:24 +0000
Commit:     Dimitry Andric <dim at 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);
+}


More information about the dev-commits-src-all mailing list