svn commit: r341662 - head/sbin/nvmecontrol

Warner Losh imp at FreeBSD.org
Thu Dec 6 23:28:57 UTC 2018


Author: imp
Date: Thu Dec  6 23:28:55 2018
New Revision: 341662
URL: https://svnweb.freebsd.org/changeset/base/341662

Log:
  Use proper prototypes.

Modified:
  head/sbin/nvmecontrol/nvmecontrol.h

Modified: head/sbin/nvmecontrol/nvmecontrol.h
==============================================================================
--- head/sbin/nvmecontrol/nvmecontrol.h	Thu Dec  6 22:59:18 2018	(r341661)
+++ head/sbin/nvmecontrol/nvmecontrol.h	Thu Dec  6 23:28:55 2018	(r341662)
@@ -96,8 +96,8 @@ struct set_concat {
 void set_concat_add(struct set_concat *m, void *begin, void *end);
 #define SET_CONCAT_DEF(set, t) 							\
 static struct set_concat set ## _concat;					\
-static inline const t * const *set ## _begin() { return ((const t * const *)set ## _concat.begin); }	\
-static inline const t * const *set ## _limit() { return ((const t * const *)set ## _concat.limit); }	\
+static inline const t * const *set ## _begin(void) { return ((const t * const *)set ## _concat.begin); }	\
+static inline const t * const *set ## _limit(void) { return ((const t * const *)set ## _concat.limit); }	\
 void add_to_ ## set(t **b, t **e)						\
 {										\
 	set_concat_add(&set ## _concat, b, e);					\


More information about the svn-src-all mailing list