chiark / gitweb /
man: document more URLs for journal-gatewayd
[elogind.git] / man / sd_journal_stream_fd.xml
index 3d2ed1d8f3db2bd7698201821da9ff258e0e2908..4407296b4059f1efce81a518cd098b527d94a519 100644 (file)
@@ -96,7 +96,7 @@
                 for more information.</para>
 
                 <para>It is recommended that applications log UTF-8
-                mesages only with this API, but this is not
+                messages only with this API, but this is not
                 enforced.</para>
 
         </refsect1>
 
                 <programlisting>#include &lt;syslog.h&gt;
 #include &lt;stdio.h&gt;
+#include &lt;string.h&gt;
+#include &lt;unistd.h&gt;
 #include &lt;systemd/sd-journal.h&gt;
 #include &lt;systemd/sd-daemon.h&gt;
 
@@ -147,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>