From owner-svn-src-head@FreeBSD.ORG Thu Dec 24 20:55:14 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0F7B106568F; Thu, 24 Dec 2009 20:55:14 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C69928FC14; Thu, 24 Dec 2009 20:55:14 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nBOKtErH041215; Thu, 24 Dec 2009 20:55:14 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nBOKtE1I041210; Thu, 24 Dec 2009 20:55:14 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <200912242055.nBOKtE1I041210@svn.freebsd.org> From: Jilles Tjoelker Date: Thu, 24 Dec 2009 20:55:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r200967 - head/bin/sh X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 20:55:15 -0000 Author: jilles Date: Thu Dec 24 20:55:14 2009 New Revision: 200967 URL: http://svn.freebsd.org/changeset/base/200967 Log: sh: Add some __dead2 to indicate functions that do not return. Modified: head/bin/sh/error.c head/bin/sh/error.h head/bin/sh/exec.h head/bin/sh/trap.h Modified: head/bin/sh/error.c ============================================================================== --- head/bin/sh/error.c Thu Dec 24 20:45:33 2009 (r200966) +++ head/bin/sh/error.c Thu Dec 24 20:55:14 2009 (r200967) @@ -67,7 +67,7 @@ volatile sig_atomic_t intpending; char *commandname; -static void exverror(int, const char *, va_list) __printf0like(2, 0); +static void exverror(int, const char *, va_list) __printf0like(2, 0) __dead2; /* * Called to raise an exception. Since C doesn't include exceptions, we Modified: head/bin/sh/error.h ============================================================================== --- head/bin/sh/error.h Thu Dec 24 20:45:33 2009 (r200966) +++ head/bin/sh/error.h Thu Dec 24 20:55:14 2009 (r200967) @@ -78,10 +78,10 @@ extern volatile sig_atomic_t intpending; #define CLEAR_PENDING_INT intpending = 0 #define int_pending() intpending -void exraise(int); +void exraise(int) __dead2; void onint(void); -void error(const char *, ...) __printf0like(1, 2); -void exerror(int, const char *, ...) __printf0like(2, 3); +void error(const char *, ...) __printf0like(1, 2) __dead2; +void exerror(int, const char *, ...) __printf0like(2, 3) __dead2; /* Modified: head/bin/sh/exec.h ============================================================================== --- head/bin/sh/exec.h Thu Dec 24 20:45:33 2009 (r200966) +++ head/bin/sh/exec.h Thu Dec 24 20:55:14 2009 (r200967) @@ -60,7 +60,7 @@ struct cmdentry { extern const char *pathopt; /* set by padvance */ extern int exerrno; /* last exec error */ -void shellexec(char **, char **, const char *, int); +void shellexec(char **, char **, const char *, int) __dead2; char *padvance(const char **, const char *); int hashcmd(int, char **); void find_command(const char *, struct cmdentry *, int, const char *); Modified: head/bin/sh/trap.h ============================================================================== --- head/bin/sh/trap.h Thu Dec 24 20:45:33 2009 (r200966) +++ head/bin/sh/trap.h Thu Dec 24 20:55:14 2009 (r200967) @@ -45,4 +45,4 @@ void ignoresig(int); void onsig(int); void dotrap(void); void setinteractive(int); -void exitshell(int); +void exitshell(int) __dead2;