From owner-svn-doc-head@FreeBSD.ORG Sat Dec 6 18:48:30 2014 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E15C4EAB; Sat, 6 Dec 2014 18:48:30 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6EBDE20A; Sat, 6 Dec 2014 18:48:30 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id sB6ImObO077108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 6 Dec 2014 20:48:24 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua sB6ImObO077108 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id sB6ImOfH077107; Sat, 6 Dec 2014 20:48:24 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 6 Dec 2014 20:48:24 +0200 From: Konstantin Belousov To: Benedict Reuschling Subject: Re: svn commit: r46068 - head/en_US.ISO8859-1/books/fdp-primer/docbook-markup Message-ID: <20141206184824.GL97072@kib.kiev.ua> References: <201412061824.sB6IOZXh050877@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201412061824.sB6IOZXh050877@svn.freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: svn-doc-head@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Dec 2014 18:48:31 -0000 On Sat, Dec 06, 2014 at 06:24:35PM +0000, Benedict Reuschling wrote: > Author: bcr > Date: Sat Dec 6 18:24:35 2014 > New Revision: 46068 > URL: https://svnweb.freebsd.org/changeset/doc/46068 > > Log: > Change the "hello world" examples so that they return 0. > I realize that this is not a C programming primer, but > we can at least try to be correct here. :-) What you changed was already correct. For hosted environments, C standard requires that 'reaching the } that terminates the main function returns a value of 0.', see 5.1.2.2.3 Program termination of 2ISO/IEC 9899:2012. > > Modified: > head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml > > Modified: head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml > ============================================================================== > --- head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml Sat Dec 6 18:14:32 2014 (r46067) > +++ head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml Sat Dec 6 18:24:35 2014 (r46068) > @@ -1104,6 +1104,7 @@ int > main(void) > { > printf("hello, world\n"); > + return 0; > }programlisting > > Notice how the angle brackets in the > @@ -1120,6 +1121,7 @@ int > main(void) > { > printf("hello, world\n"); > + return 0; > } > > > @@ -1150,6 +1152,7 @@ int co xml:id="co- > main(void) > { > printf("hello, world\n"); co xml:id="co-ex-printf" > + return 0; > }programlisting > > calloutlist > @@ -1178,6 +1181,7 @@ int > main(void) > { > printf("hello, world\n"); > + return 0; > } > > > _______________________________________________ > svn-doc-all@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-doc-all > To unsubscribe, send any mail to "svn-doc-all-unsubscribe@freebsd.org"