Branch: refs/heads/main
Home: https://github.com/seccomp/libseccomp
Commit: 6d5a0bb22c8162c167900a47d57ebdeeb22ff8c0
https://github.com/seccomp/libseccomp/commit/6d5a0bb22c8162c167900a47d57ebdeeb22ff8c0
Author: Kir Kolyshkin <[email protected]>
Date: 2021-03-05 (Fri, 05 Mar 2021)
Changed paths:
M doc/man/man3/seccomp_api_get.3
M doc/man/man3/seccomp_release.3
M doc/man/man3/seccomp_version.3
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Tom Hromatka <[email protected]>
[PM: subject line tweaks]
Signed-off-by: Paul Moore <[email protected]>
--
You received this message because you are subscribed to the Google Groups
"libseccomp" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/libseccomp/seccomp/libseccomp/push/refs/heads/main/d5ad83-6d5a0b%40github.com.