]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: Fix example code in ROOT_STORAGE_DAEMONS 14712/head
authorWilhelm Schuster <ws@rot13.io>
Thu, 30 Jan 2020 20:27:05 +0000 (20:27 +0000)
committerWilhelm Schuster <ws@rot13.io>
Thu, 30 Jan 2020 20:27:05 +0000 (20:27 +0000)
docs/ROOT_STORAGE_DAEMONS.md

index ff4c7718188285e3b0d608fa28624e629babcf87..779044b0d4e8358134a20c7ec99624e5c2bc8bf3 100644 (file)
@@ -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] = '@';
 ...
 ```