Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2017 20:34:02 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316105 - head/sbin/nvmecontrol
Message-ID:  <201703282034.v2SKY2Sb073898@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue Mar 28 20:34:02 2017
New Revision: 316105
URL: https://svnweb.freebsd.org/changeset/base/316105

Log:
  Don't use K&R style prototypes; ANSIfy them
  
  This fixes several -Wold-style-definition warnings.
  
  X-MFC with:	313191
  Reported by:	amd64-gcc-6.3.0 (devel/amd64-xtoolchain-gcc)
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sbin/nvmecontrol/wdc.c

Modified: head/sbin/nvmecontrol/wdc.c
==============================================================================
--- head/sbin/nvmecontrol/wdc.c	Tue Mar 28 20:30:33 2017	(r316104)
+++ head/sbin/nvmecontrol/wdc.c	Tue Mar 28 20:34:02 2017	(r316105)
@@ -178,7 +178,7 @@ wdc_do_clear_dump(int fd, uint32_t opcod
 }
 
 static void
-wdc_cap_diag_usage()
+wdc_cap_diag_usage(void)
 {
 	fprintf(stderr, "usage:\n");
 	fprintf(stderr, WDC_CAP_DIAG_USAGE);
@@ -215,7 +215,7 @@ wdc_cap_diag(int argc, char *argv[])
 }
 
 static void
-wdc_drive_log_usage()
+wdc_drive_log_usage(void)
 {
 	fprintf(stderr, "usage:\n");
 	fprintf(stderr, WDC_DRIVE_LOG_USAGE);
@@ -252,7 +252,7 @@ wdc_drive_log(int argc, char *argv[])
 }
 
 static void
-wdc_get_crash_dump_usage()
+wdc_get_crash_dump_usage(void)
 {
 	fprintf(stderr, "usage:\n");
 	fprintf(stderr, WDC_CAP_DIAG_USAGE);



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