diff options
author | Kir Kolyshkin <kolyshkin@gmail.com> | 2021-02-16 11:24:58 -0800 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-03-05 18:25:54 -0500 |
commit | 6d5a0bb22c8162c167900a47d57ebdeeb22ff8c0 (patch) | |
tree | 2e2d1ce198d220601c6b93748d8522bb8708a55e /src | |
parent | d5ad8369233322072eb0df0f9f507d94f6c88cf0 (diff) | |
download | libseccomp-6d5a0bb22c8162c167900a47d57ebdeeb22ff8c0.tar.gz |
doc: don't return -1 from main in manpage examples
It is custom for C functions to return a negative integer to denote
an error. This should not be done with main() though, as the return
value is used as an exit code, which is a byte (unsigned char), so
return -1 becomes 255, which is unconventional.
Fix examples where main returns -1 to return 1.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Reviewed-by: Tom Hromatka <tom.hromatka@oracle.com>
[PM: subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions