X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsd_journal_stream_fd.xml;h=4407296b4059f1efce81a518cd098b527d94a519;hp=3d2ed1d8f3db2bd7698201821da9ff258e0e2908;hb=4203aa37afb22631ad3859709ba33923a39a4953;hpb=a81df0ad90f0dea0eb272c02efe18934fa66fdf2 diff --git a/man/sd_journal_stream_fd.xml b/man/sd_journal_stream_fd.xml index 3d2ed1d8f..4407296b4 100644 --- a/man/sd_journal_stream_fd.xml +++ b/man/sd_journal_stream_fd.xml @@ -96,7 +96,7 @@ for more information. 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. @@ -127,6 +127,8 @@ #include <syslog.h> #include <stdio.h> +#include <string.h> +#include <unistd.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); + return 0; }