summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorWilhelm Schuster <ws@rot13.io>2020-01-30 21:27:05 +0100
committerWilhelm Schuster <ws@rot13.io>2020-01-30 21:27:05 +0100
commitfaec9de87f1a18bf3fbef80a578ad88f69a72c62 (patch)
tree01dfdad911f693362b4603d5722aa26fc91eb689 /docs
parentMerge pull request #14701 from keszybz/homed-fixups (diff)
downloadsystemd-faec9de87f1a18bf3fbef80a578ad88f69a72c62.tar.xz
systemd-faec9de87f1a18bf3fbef80a578ad88f69a72c62.zip
docs: Fix example code in ROOT_STORAGE_DAEMONS
Diffstat (limited to 'docs')
-rw-r--r--docs/ROOT_STORAGE_DAEMONS.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ROOT_STORAGE_DAEMONS.md b/docs/ROOT_STORAGE_DAEMONS.md
index ff4c771818..779044b0d4 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] = '@';
...
```