From 62f1c068a8020d222c5eb0696d1ad71cb917f644 Mon Sep 17 00:00:00 2001 From: Jarkko Sakkinen Date: Wed, 30 Oct 2013 15:52:19 +0200 Subject: [PATCH] Fix man pages Regression from 1edba54. (cherry picked from commit e6f32e4403ad549102cfbdbd02b4dcd254da84d2) --- doc/smack_accesses_add.3 | 4 +--- doc/smack_have_access.3 | 13 +++++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/doc/smack_accesses_add.3 b/doc/smack_accesses_add.3 index ec32423..0488590 100644 --- a/doc/smack_accesses_add.3 +++ b/doc/smack_accesses_add.3 @@ -110,9 +110,7 @@ label directly in the kernel. The calling process must have the CAP_MAC_ADMIN c .SH RETURN VALUE All methods, except .IR smack_accesses_free , -return 0 on success and a negative value on failure (in which case -.I errno -is set appropriately). +return 0 on success and a negative value on failure .SH EXAMPLES .nf #include diff --git a/doc/smack_have_access.3 b/doc/smack_have_access.3 index 2f6e535..3942e22 100644 --- a/doc/smack_have_access.3 +++ b/doc/smack_have_access.3 @@ -76,11 +76,12 @@ when it is no longer required. .BR smack_new_label_from_self () and .BR smack_new_label_from_socket () -return 0 on success or \-1 on error (in which case, -.I errno -is set appropriately). +return 0 on success or \-1 on error .BR smack_have_access () -returns 1 if allowed, 0 if no access and \-1 on error (in which case, -.I errno -is set appropriately). +returns 1 if allowed, 0 if no access and \-1 on error + +.BR smack_label_length () +returns length of +.I label +if it is valid and negative value if it's not. -- 2.7.4