Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2019 20:21:27 +0000 (UTC)
From:      Toomas Soome <tsoome@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r349566 - head/stand/efi/libefi
Message-ID:  <201906302021.x5UKLR0C012940@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tsoome
Date: Sun Jun 30 20:21:27 2019
New Revision: 349566
URL: https://svnweb.freebsd.org/changeset/base/349566

Log:
  efihttp: mark unused arguments with __unused
  
  we do have __unused, lets use it.

Modified:
  head/stand/efi/libefi/efihttp.c

Modified: head/stand/efi/libefi/efihttp.c
==============================================================================
--- head/stand/efi/libefi/efihttp.c	Sun Jun 30 20:18:31 2019	(r349565)
+++ head/stand/efi/libefi/efihttp.c	Sun Jun 30 20:21:27 2019	(r349566)
@@ -108,7 +108,7 @@ struct fs_ops efihttp_fsops = {
 };
 
 static void EFIAPI
-notify(EFI_EVENT event, void *context)
+notify(EFI_EVENT event __unused, void *context)
 {
 	bool *b;
 
@@ -217,8 +217,9 @@ efihttp_dev_init(void)
 }
 
 static int
-efihttp_dev_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf,
-    size_t *rsize)
+efihttp_dev_strategy(void *devdata __unused, int rw __unused,
+    daddr_t blk __unused, size_t size __unused, char *buf __unused,
+    size_t *rsize __unused)
 {
 	return (EIO);
 }
@@ -583,7 +584,7 @@ efihttp_fs_open(const char *path, struct open_file *f)
 }
 
 static int
-efihttp_fs_close(struct open_file *f)
+efihttp_fs_close(struct open_file *f __unused)
 {
 	return (0);
 }
@@ -677,7 +678,8 @@ end:
 }
 
 static int
-efihttp_fs_write(struct open_file *f, const void *buf, size_t size, size_t *resid)
+efihttp_fs_write(struct open_file *f __unused, const void *buf __unused,
+    size_t size __unused, size_t *resid __unused)
 {
 	return (EIO);
 }



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