projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8759665
)
btrfs-progs: mkfs: use const char for unmodified members of directory_name_entry
author
David Sterba
<dsterba@suse.com>
Wed, 2 Nov 2016 23:01:51 +0000
(
00:01
+0100)
committer
David Sterba
<dsterba@suse.com>
Wed, 9 Nov 2016 12:47:31 +0000
(13:47 +0100)
We never modify the members, just point them to other strings.
Signed-off-by: David Sterba <dsterba@suse.com>
mkfs.c
patch
|
blob
|
history
diff --git
a/mkfs.c
b/mkfs.c
index
2b6fc64
..
8c15ceb
100644
(file)
--- 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;
+ c
onst c
har *dir_name;
+ c
onst c
har *path;
ino_t inum;
struct list_head list;
};