From owner-svn-src-all@FreeBSD.ORG Sun Feb 21 21:03:15 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68C5C1065676; Sun, 21 Feb 2010 21:03:15 +0000 (UTC) (envelope-from uqs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 570CF8FC0C; Sun, 21 Feb 2010 21:03:15 +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 o1LL3FEu037891; Sun, 21 Feb 2010 21:03:15 GMT (envelope-from uqs@svn.freebsd.org) Received: (from uqs@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o1LL3FGS037889; Sun, 21 Feb 2010 21:03:15 GMT (envelope-from uqs@svn.freebsd.org) Message-Id: <201002212103.o1LL3FGS037889@svn.freebsd.org> From: Ulrich Spoerlein Date: Sun, 21 Feb 2010 21:03:15 +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: r204178 - head/games/fortune/fortune X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 21:03:15 -0000 Author: uqs Date: Sun Feb 21 21:03:15 2010 New Revision: 204178 URL: http://svn.freebsd.org/changeset/base/204178 Log: Prefer exit(0) from main over return(0). Although not explicitly mentioned in style(9), it allows for easier grepping of exit points. This reverts part of r203926. Requested by: des Approved by: philip (mentor) Modified: head/games/fortune/fortune/fortune.c Modified: head/games/fortune/fortune/fortune.c ============================================================================== --- head/games/fortune/fortune/fortune.c Sun Feb 21 19:56:47 2010 (r204177) +++ head/games/fortune/fortune/fortune.c Sun Feb 21 21:03:15 2010 (r204178) @@ -216,7 +216,7 @@ main(int argc, char *argv[]) sleep((unsigned int) max(Fort_len / CPERS, MINW)); } - return (0); + exit(0); } void