[CRIU] [PATCH v2 6/9] pstree.h: mark dmpi's arg as const
Tycho Andersen
tycho.andersen at canonical.com
Mon Oct 24 08:51:10 PDT 2016
We'll need this for the next bits and the series, and since dmpi doesn't
modify this or even use it the structure, it's safe.
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
criu/include/pstree.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/include/pstree.h b/criu/include/pstree.h
index 3bf3623..5768b64 100644
--- a/criu/include/pstree.h
+++ b/criu/include/pstree.h
@@ -47,7 +47,7 @@ struct dmp_info {
struct parasite_ctl *parasite_ctl;
};
-static inline struct dmp_info *dmpi(struct pstree_item *i)
+static inline struct dmp_info *dmpi(const struct pstree_item *i)
{
return (struct dmp_info *)(i + 1);
}
--
2.9.3
More information about the CRIU
mailing list