[CRIU] [PATCH v2 2/9] util: make dir_dots' arg const
Tycho Andersen
tycho.andersen at canonical.com
Mon Oct 24 08:51:06 PDT 2016
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
criu/include/util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/include/util.h b/criu/include/util.h
index d94c23f..1f13ff8 100644
--- a/criu/include/util.h
+++ b/criu/include/util.h
@@ -172,7 +172,7 @@ extern int cr_system_userns(int in, int out, int err, char *cmd,
extern int cr_daemon(int nochdir, int noclose, int *keep_fd, int close_fd);
extern int is_root_user(void);
-static inline bool dir_dots(struct dirent *de)
+static inline bool dir_dots(const struct dirent *de)
{
return !strcmp(de->d_name, ".") || !strcmp(de->d_name, "..");
}
--
2.9.3
More information about the CRIU
mailing list