Reported-by: Kees Cook <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
---
doc/man/man3/seccomp_arch_add.3 | 8 ++++----
doc/man/man3/seccomp_load.3 | 4 ++--
doc/man/man3/seccomp_merge.3 | 8 ++++----
doc/man/man3/seccomp_syscall_priority.3 | 2 +-
doc/man/man3/seccomp_syscall_resolve_name.3 | 4 ++--
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/doc/man/man3/seccomp_arch_add.3 b/doc/man/man3/seccomp_arch_add.3
index 99d9cc7..fd1da55 100644
--- a/doc/man/man3/seccomp_arch_add.3
+++ b/doc/man/man3/seccomp_arch_add.3
@@ -68,7 +68,7 @@ and
.BR seccomp_arch_remove ()
functions return zero on success, negative errno values on failure. The
.BR seccomp_arch_exist ()
-function returns zero if the architecture exists, -EEXIST if it does not, and
+function returns zero if the architecture exists, \-EEXIST if it does not, and
other negative errno values on failure.
.\" //////////////////////////////////////////////////////////////////////////
.SH EXAMPLES
@@ -78,14 +78,14 @@ other negative errno values on failure.
int main(int argc, char *argv[])
{
- int rc = -1;
+ int rc = \-1;
scmp_filter_ctx ctx;
ctx = seccomp_init(SCMP_ACT_KILL);
if (ctx == NULL)
goto out;
- if (seccomp_arch_exist(ctx, SCMP_ARCH_X86) == -EEXIST) {
+ if (seccomp_arch_exist(ctx, SCMP_ARCH_X86) == \-EEXIST) {
rc = seccomp_arch_add(ctx, SCMP_ARCH_X86);
if (rc != 0)
goto out_all;
@@ -98,7 +98,7 @@ int main(int argc, char *argv[])
out:
seccomp_release(ctx);
- return -rc;
+ return \-rc;
}
.fi
.\" //////////////////////////////////////////////////////////////////////////
diff --git a/doc/man/man3/seccomp_load.3 b/doc/man/man3/seccomp_load.3
index 0a483a0..87e0766 100644
--- a/doc/man/man3/seccomp_load.3
+++ b/doc/man/man3/seccomp_load.3
@@ -35,7 +35,7 @@ Returns zero on success, negative errno values on failure.
int main(int argc, char *argv[])
{
- int rc = -1;
+ int rc = \-1;
scmp_filter_ctx ctx;
ctx = seccomp_init(SCMP_ACT_KILL);
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
out:
seccomp_release(ctx);
- return -rc;
+ return \-rc;
}
.fi
.\" //////////////////////////////////////////////////////////////////////////
diff --git a/doc/man/man3/seccomp_merge.3 b/doc/man/man3/seccomp_merge.3
index b84d9ad..3a00bcd 100644
--- a/doc/man/man3/seccomp_merge.3
+++ b/doc/man/man3/seccomp_merge.3
@@ -50,7 +50,7 @@ Returns zero on success and negative values on failure.
int main(int argc, char *argv[])
{
- int rc = -1;
+ int rc = \-1;
scmp_filter_ctx ctx_32, ctx_64;
ctx_32 = seccomp_init(SCMP_ACT_KILL);
@@ -60,7 +60,7 @@ int main(int argc, char *argv[])
if (ctx_64 == NULL)
goto out_all;
- if (seccomp_arch_exist(ctx_32, SCMP_ARCH_X86) == -EEXIST) {
+ if (seccomp_arch_exist(ctx_32, SCMP_ARCH_X86) == \-EEXIST) {
rc = seccomp_arch_add(ctx_32, SCMP_ARCH_X86);
if (rc != 0)
goto out_all;
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
if (rc != 0)
goto out_all;
}
- if (seccomp_arch_exist(ctx_64, SCMP_ARCH_X86_64) == -EEXIST) {
+ if (seccomp_arch_exist(ctx_64, SCMP_ARCH_X86_64) == \-EEXIST) {
rc = seccomp_arch_add(ctx_64, SCMP_ARCH_X86_64);
if (rc != 0)
goto out_all;
@@ -89,7 +89,7 @@ int main(int argc, char *argv[])
out:
seccomp_release(ctx_64);
- return -rc;
+ return \-rc;
out_all:
seccomp_release(ctx_32);
goto out;
diff --git a/doc/man/man3/seccomp_syscall_priority.3
b/doc/man/man3/seccomp_syscall_priority.3
index c99e2ba..7cffde8 100644
--- a/doc/man/man3/seccomp_syscall_priority.3
+++ b/doc/man/man3/seccomp_syscall_priority.3
@@ -42,7 +42,7 @@ macro instead. See the EXAMPLES section below.
.P
The
.I priority
-parameter takes an 8-bit value ranging from 0 - 255; a higher value represents
+parameter takes an 8-bit value ranging from 0 \- 255; a higher value represents
a higher priority.
.P
The filter context
diff --git a/doc/man/man3/seccomp_syscall_resolve_name.3
b/doc/man/man3/seccomp_syscall_resolve_name.3
index e0282bb..0e78b55 100644
--- a/doc/man/man3/seccomp_syscall_resolve_name.3
+++ b/doc/man/man3/seccomp_syscall_resolve_name.3
@@ -63,7 +63,7 @@ responsibility to free the returned string via
int main(int argc, char *argv[])
{
- int rc = -1;
+ int rc = \-1;
scmp_filter_ctx ctx;
ctx = seccomp_init(SCMP_ACT_KILL);
@@ -87,7 +87,7 @@ int main(int argc, char *argv[])
out:
seccomp_release(ctx);
- return -rc;
+ return \-rc;
}
.fi
.\" //////////////////////////////////////////////////////////////////////////
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss