Commit e53d353e authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

pstree.h: mark dmpi's arg as const

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: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent b24df599
...@@ -47,7 +47,7 @@ struct dmp_info { ...@@ -47,7 +47,7 @@ struct dmp_info {
struct parasite_ctl *parasite_ctl; 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); return (struct dmp_info *)(i + 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment