chiark / gitweb /
man: fix various typos
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Jul 2012 19:54:19 +0000 (21:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Jul 2012 19:54:19 +0000 (21:54 +0200)
man/sd_journal_get_fd.xml
man/sd_journal_print.xml
man/sd_journal_stream_fd.xml

index f4db2a392aed5b329ad6cfd29ae335b70173af37..6c2660c4a4cb6d65acca0a1bb3fdf354da3c0675 100644 (file)
@@ -44,8 +44,8 @@
 
         <refnamediv>
                 <refname>sd_journal_get_fd</refname>
-                <refname>sd_journal_get_process</refname>
-                <refname>sd_journal_get_wait</refname>
+                <refname>sd_journal_process</refname>
+                <refname>sd_journal_wait</refname>
                 <refpurpose>Journal change notification
                 interface</refpurpose>
         </refnamediv>
index 71551f779a04843620e5bd307dffe5e360b39f17..65694a2e301292ec2c11a3b308f397d9947b640c 100644 (file)
                 used to submit structured log entries to the system
                 journal. It takes a series of format strings, each
                 immediately followed by their associated parameters,
-                terminated by NULL. The strings passed should be of
+                terminated by NULL. The strings passed should be of
                 the format <literal>VARIABLE=value</literal>. The
                 variable name must be in uppercase and consist only
                 of characters, numbers and underscores, and may not
                 journal where that is necessary.</para>
 
                 <para>Note that <function>sd_journal_send()</function>
-                is a wapper around
+                is a wrapper around
                 <function>sd_journal_sendv()</function> to make it
                 easier to use when only text strings shall be
                 submitted. Also, the following two calls are
@@ -171,7 +171,7 @@ sd_journal_send("MESSAGE=Hello World, this is PID %lu!", (unsigned long) getpid(
 
                 <para><citerefentry><refentrytitle>syslog</refentrytitle><manvolnum>3</manvolnum></citerefentry>
                 and and <function>sd_journal_print()</function> may
-                mostly be used interchangably
+                largely be used interchangably
                 functionality-wise. However, note that log messages
                 logged via the former take a different path to the
                 journal server than the later, and hence global
index 917ab4fe816bfef96991dd68b45346132036ea2a..662c7bbbb991e5919eb804d8dd0b9b492a4df947 100644 (file)
@@ -149,6 +149,7 @@ int main(int argc, char *argv[]) {
         fprintf(log, "Hello World!\n");
         fprintf(log, SD_WARNING "This is a warning!\n");
         fclose(log);
+        return 0;
 }</programlisting>
 
         </refsect1>