svn commit: r337426 - head/sbin/ifconfig

Mark Johnston markj at FreeBSD.org
Tue Aug 7 17:25:39 UTC 2018


Author: markj
Date: Tue Aug  7 17:25:38 2018
New Revision: 337426
URL: https://svnweb.freebsd.org/changeset/base/337426

Log:
  ifconfig: Fix use of _Noreturn.
  
  The _Noreturn is a function-specifier (like inline) which must preceed
  the declarator.
  
  Submitted by:	Sebastian Huber <sebastian.huber at embedded-brains.de>
  MFC after:	1 week

Modified:
  head/sbin/ifconfig/ifconfig.c

Modified: head/sbin/ifconfig/ifconfig.c
==============================================================================
--- head/sbin/ifconfig/ifconfig.c	Tue Aug  7 17:13:42 2018	(r337425)
+++ head/sbin/ifconfig/ifconfig.c	Tue Aug  7 17:25:38 2018	(r337426)
@@ -109,7 +109,7 @@ static	int ifconfig(int argc, char *const *argv, int i
 static	void status(const struct afswtch *afp, const struct sockaddr_dl *sdl,
 		struct ifaddrs *ifa);
 static	void tunnel_status(int s);
-static	void usage(void) _Noreturn;
+static _Noreturn void usage(void);
 
 static struct afswtch *af_getbyname(const char *name);
 static struct afswtch *af_getbyfamily(int af);


More information about the svn-src-head mailing list