From 8ade920c5b5e7c54cafb58fcb18bb11a7af41436 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 3 Nov 2016 00:01:51 +0100 Subject: [PATCH] btrfs-progs: mkfs: use const char for unmodified members of directory_name_entry We never modify the members, just point them to other strings. Signed-off-by: David Sterba --- mkfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkfs.c b/mkfs.c index 2b6fc64..8c15ceb 100644 --- a/mkfs.c +++ b/mkfs.c @@ -48,8 +48,8 @@ static u64 index_cnt = 2; static int verbose = 1; struct directory_name_entry { - char *dir_name; - char *path; + const char *dir_name; + const char *path; ino_t inum; struct list_head list; }; -- 2.7.4