1 |
commit: efc6caa0b7eb4fce2d955ae255f449e0cdcf51b4 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 10 07:07:10 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 10 07:07:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=efc6caa0 |
7 |
|
8 |
seccomp-bpf: fix warnings by not using nexted open comments |
9 |
|
10 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
11 |
|
12 |
seccomp-bpf.c | 5 +++-- |
13 |
seccomp-bpf.h | 5 +++-- |
14 |
2 files changed, 6 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/seccomp-bpf.c b/seccomp-bpf.c |
17 |
index 8e61f7f..a72f6ef 100644 |
18 |
--- a/seccomp-bpf.c |
19 |
+++ b/seccomp-bpf.c |
20 |
@@ -211,8 +211,9 @@ int main(void) |
21 |
err(1, "seccomp_init failed"); |
22 |
|
23 |
printf("/* AUTO GENERATED FILE. To regenerate run:\n"); |
24 |
- printf("/* $ make seccomp-bpf.h\n"); |
25 |
- printf("/* See seccomp-bpf.c for details. */\n"); |
26 |
+ printf(" * $ $EDITOR seccomp-bpf.c\n"); |
27 |
+ printf(" * $ make seccomp-bpf.h\n"); |
28 |
+ printf(" * See seccomp-bpf.c for details. */\n"); |
29 |
printf("#undef SECCOMP_BPF_AVAILABLE\n"); |
30 |
|
31 |
if (seccomp_arch_remove(ctx, seccomp_arch_native()) < 0) |
32 |
|
33 |
diff --git a/seccomp-bpf.h b/seccomp-bpf.h |
34 |
index 95f5bfb..bb2e9cd 100644 |
35 |
--- a/seccomp-bpf.h |
36 |
+++ b/seccomp-bpf.h |
37 |
@@ -1,6 +1,7 @@ |
38 |
/* AUTO GENERATED FILE. To regenerate run: |
39 |
-/* $ make seccomp-bpf.h |
40 |
-/* See seccomp-bpf.c for details. */ |
41 |
+ * $ $EDITOR seccomp-bpf.c |
42 |
+ * $ make seccomp-bpf.h |
43 |
+ * See seccomp-bpf.c for details. */ |
44 |
#undef SECCOMP_BPF_AVAILABLE |
45 |
|
46 |
#if defined(__aarch64__) |