aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-06-02 16:55:49 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-06-02 16:55:49 +0200
commit06394c6c003cc0cab3a2a5a8783db4c9610f67a5 (patch)
treecd8f31faaa9f879e36ee4aeb99a9a04d921222b0
parent9399065325f6309fe37d90fe2595aea28f7c34b6 (diff)
downloadseitan-06394c6c003cc0cab3a2a5a8783db4c9610f67a5.tar
seitan-06394c6c003cc0cab3a2a5a8783db4c9610f67a5.tar.gz
seitan-06394c6c003cc0cab3a2a5a8783db4c9610f67a5.tar.bz2
seitan-06394c6c003cc0cab3a2a5a8783db4c9610f67a5.tar.lz
seitan-06394c6c003cc0cab3a2a5a8783db4c9610f67a5.tar.xz
seitan-06394c6c003cc0cab3a2a5a8783db4c9610f67a5.tar.zst
seitan-06394c6c003cc0cab3a2a5a8783db4c9610f67a5.zip
gluten: What's const is const
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--operations.c2
-rw-r--r--operations.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/operations.c b/operations.c
index 5d295c6..6cd1c48 100644
--- a/operations.c
+++ b/operations.c
@@ -314,7 +314,7 @@ int op_fd(const struct seccomp_notif *req, int notifier,
{
const struct fd_desc *desc = gluten_ptr(&req->data, g, op->desc);
struct seccomp_notif_addfd resp;
- void *fd;
+ const void *fd;
if (!desc)
return -1;
diff --git a/operations.h b/operations.h
index 1ece615..46c4b4c 100644
--- a/operations.h
+++ b/operations.h
@@ -33,7 +33,7 @@ struct ns_path {
struct arg_clone {
long nr;
- void *args[6];
+ const void *args[6];
char ns_path[NS_TYPE_MAX + 1][PATH_MAX];
long ret;
int err;