svn commit: r46069 - head/en_US.ISO8859-1/books/fdp-primer/docbook-markup

Benedict Reuschling <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
Author: bcr
Date: Sat Dec  6 19:39:54 2014
New Revision: 46069
URL: https://svnweb.freebsd.org/changeset/doc/46069

Log:
  Revert my previous change.
  
  To quote form the standard:
  "reaching the } that terminates the main function returns a value of 0."
  - 5.1.2.2.3 Program termination in 2ISO/IEC 9899:2012
  
  Pointed out by:	    kib

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:24:35 2014	(r46068)
+++ head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml	Sat Dec  6 19:39:54 2014	(r46069)
@@ -1104,7 +1104,6 @@ int
 main(void)
 {
     printf("hello, world\n");
-    return 0;
 }<tag class="endtag">programlisting</tag></programlisting>
 
 	<para>Notice how the angle brackets in the
@@ -1121,7 +1120,6 @@ int
 main(void)
 {
     printf("hello, world\n");
-    return 0;
 }</programlisting>
       </example>
     </sect2>
@@ -1152,7 +1150,6 @@ int <tag class="emptytag">co xml:id="co-
 main(void)
 {
     printf("hello, world\n"); <tag class="emptytag">co xml:id="co-ex-printf"</tag>
-    return 0;
 }<tag class="endtag">programlisting</tag>
 
 <tag class="starttag">calloutlist</tag>
@@ -1181,7 +1178,6 @@ int <co xml:id="co-ex-return"/>
 main(void)
 {
     printf("hello, world\n"); <co xml:id="co-ex-printf"/>
-    return 0;
 }</programlisting>
 
 	<calloutlist>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.