Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2018 17:25:38 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337426 - head/sbin/ifconfig
Message-ID:  <201808071725.w77HPciT051597@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);



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