Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 2021 14:58:01 GMT
From:      Yoshihiro Takahashi <nyan@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 580311ef3283 - stable/12 - bootparamd: Add missing __unused mark.
Message-ID:  <202101191458.10JEw1SM057288@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by nyan:

URL: https://cgit.FreeBSD.org/src/commit/?id=580311ef32836ef7f4c40be59a6f12784c9d94fd

commit 580311ef32836ef7f4c40be59a6f12784c9d94fd
Author:     Yoshihiro Takahashi <nyan@FreeBSD.org>
AuthorDate: 2021-01-02 15:40:34 +0000
Commit:     Yoshihiro Takahashi <nyan@FreeBSD.org>
CommitDate: 2021-01-19 14:55:40 +0000

    bootparamd: Add missing __unused mark.
    
    e03764d931d820185a019334259b18df2e3f6b6c did not catch all unused
    variables.
    
    Submitted by:           otis
    Differential Revision:  https://reviews.freebsd.org/D27894
    
    (cherry picked from commit 8c45fe5d8ecda4be7564aadaa50712790c6c0a6f)
---
 usr.sbin/bootparamd/bootparamd/bootparamd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.sbin/bootparamd/bootparamd/bootparamd.c b/usr.sbin/bootparamd/bootparamd/bootparamd.c
index 7cc57d2427a4..be885de62f55 100644
--- a/usr.sbin/bootparamd/bootparamd/bootparamd.c
+++ b/usr.sbin/bootparamd/bootparamd/bootparamd.c
@@ -179,7 +179,7 @@ bootparamproc_getfile_1_svc(bp_getfile_arg *getfile, struct svc_req *req __unuse
       empty answer for the file "dump")   */
 
 static int
-getthefile(char *l_askname, char *fileid, char *buf, int blen)
+getthefile(char *l_askname, char *fileid, char *buf, int blen __unused)
 {
   FILE *bpf;
   char  *where;
@@ -285,7 +285,7 @@ getthefile(char *l_askname, char *fileid, char *buf, int blen)
    name for a host in the database */
 
 static int
-checkhost(char *l_askname, char *l_hostname, int len)
+checkhost(char *l_askname, char *l_hostname, int len __unused)
 {
   int ch, pch;
   FILE *bpf;



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