mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 12:13:33 +08:00
minor CODING_STYLE clarification
This commit is contained in:
parent
3e8a82dbd0
commit
10c6258e32
@ -240,6 +240,11 @@
|
||||
|
||||
unlink("/foo/bar/baz");
|
||||
|
||||
Don't cast function calls to (void) that return no error
|
||||
conditions. Specifically, the various xyz_unref() calls that return a NULL
|
||||
object shouldn't be cast to (void), since not using the return value does not
|
||||
hide any errors.
|
||||
|
||||
- Don't invoke exit(), ever. It is not replacement for proper error
|
||||
handling. Please escalate errors up your call chain, and use normal
|
||||
"return" to exit from the main function of a process. If you
|
||||
|
Loading…
Reference in New Issue
Block a user