From: Wilhelm Schuster Date: Thu, 30 Jan 2020 20:27:05 +0000 (+0000) Subject: docs: Fix example code in ROOT_STORAGE_DAEMONS X-Git-Tag: v245-rc1~45^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14712%2Fhead;p=thirdparty%2Fsystemd.git docs: Fix example code in ROOT_STORAGE_DAEMONS --- diff --git a/docs/ROOT_STORAGE_DAEMONS.md b/docs/ROOT_STORAGE_DAEMONS.md index ff4c7718188..779044b0d4e 100644 --- a/docs/ROOT_STORAGE_DAEMONS.md +++ b/docs/ROOT_STORAGE_DAEMONS.md @@ -87,11 +87,11 @@ systemd 38: Processes (run by the root user) whose first character of the zeroth command line argument is `@` are excluded from the killing spree, much the same way as kernel threads are excluded too. Thus, a daemon which wants to take advantage -of this logic needs to place the following at the top of its main() function: +of this logic needs to place the following at the top of its `main()` function: ```c ... -[0][0] = '@'; +argv[0][0] = '@'; ... ```