[CRIU] [PATCH v2 2/6] util: make dir_dots' arg const

Tycho Andersen tycho.andersen at canonical.com
Thu Oct 6 12:22:48 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 5b7cad1..62981a0 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