chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus: don't allow recursive invocation of sd_bus_process()
[elogind.git]
/
man
/
sd_journal_stream_fd.xml
diff --git
a/man/sd_journal_stream_fd.xml
b/man/sd_journal_stream_fd.xml
index 3d2ed1d8f3db2bd7698201821da9ff258e0e2908..4407296b4059f1efce81a518cd098b527d94a519 100644
(file)
--- a/
man/sd_journal_stream_fd.xml
+++ b/
man/sd_journal_stream_fd.xml
@@
-96,7
+96,7
@@
for more information.</para>
<para>It is recommended that applications log UTF-8
for more information.</para>
<para>It is recommended that applications log UTF-8
- mesages only with this API, but this is not
+ mes
s
ages only with this API, but this is not
enforced.</para>
</refsect1>
enforced.</para>
</refsect1>
@@
-127,6
+127,8
@@
<programlisting>#include <syslog.h>
#include <stdio.h>
<programlisting>#include <syslog.h>
#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
#include <systemd/sd-journal.h>
#include <systemd/sd-daemon.h>
#include <systemd/sd-journal.h>
#include <systemd/sd-daemon.h>
@@
-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);
fprintf(log, "Hello World!\n");
fprintf(log, SD_WARNING "This is a warning!\n");
fclose(log);
+ return 0;
}</programlisting>
</refsect1>
}</programlisting>
</refsect1>