|
34 | 34 | #include <linux/crc-itu-t.h> |
35 | 35 | #include <linux/exportfs.h> |
36 | 36 |
|
37 | | -static inline int udf_match(int len1, const char *name1, int len2, |
38 | | - const char *name2) |
| 37 | +static inline int udf_match(int len1, const unsigned char *name1, int len2, |
| 38 | + const unsigned char *name2) |
39 | 39 | { |
40 | 40 | if (len1 != len2) |
41 | 41 | return 0; |
@@ -142,15 +142,15 @@ int udf_write_fi(struct inode *inode, struct fileIdentDesc *cfi, |
142 | 142 | } |
143 | 143 |
|
144 | 144 | static struct fileIdentDesc *udf_find_entry(struct inode *dir, |
145 | | - struct qstr *child, |
| 145 | + const struct qstr *child, |
146 | 146 | struct udf_fileident_bh *fibh, |
147 | 147 | struct fileIdentDesc *cfi) |
148 | 148 | { |
149 | 149 | struct fileIdentDesc *fi = NULL; |
150 | 150 | loff_t f_pos; |
151 | 151 | int block, flen; |
152 | | - char *fname = NULL; |
153 | | - char *nameptr; |
| 152 | + unsigned char *fname = NULL; |
| 153 | + unsigned char *nameptr; |
154 | 154 | uint8_t lfi; |
155 | 155 | uint16_t liu; |
156 | 156 | loff_t size; |
@@ -308,7 +308,7 @@ static struct fileIdentDesc *udf_add_entry(struct inode *dir, |
308 | 308 | { |
309 | 309 | struct super_block *sb = dir->i_sb; |
310 | 310 | struct fileIdentDesc *fi = NULL; |
311 | | - char *name = NULL; |
| 311 | + unsigned char *name = NULL; |
312 | 312 | int namelen; |
313 | 313 | loff_t f_pos; |
314 | 314 | loff_t size = udf_ext0_offset(dir) + dir->i_size; |
@@ -885,16 +885,16 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry, |
885 | 885 | { |
886 | 886 | struct inode *inode; |
887 | 887 | struct pathComponent *pc; |
888 | | - char *compstart; |
| 888 | + const char *compstart; |
889 | 889 | struct udf_fileident_bh fibh; |
890 | 890 | struct extent_position epos = {}; |
891 | 891 | int eoffset, elen = 0; |
892 | 892 | struct fileIdentDesc *fi; |
893 | 893 | struct fileIdentDesc cfi; |
894 | | - char *ea; |
| 894 | + uint8_t *ea; |
895 | 895 | int err; |
896 | 896 | int block; |
897 | | - char *name = NULL; |
| 897 | + unsigned char *name = NULL; |
898 | 898 | int namelen; |
899 | 899 | struct buffer_head *bh; |
900 | 900 | struct udf_inode_info *iinfo; |
@@ -970,7 +970,7 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry, |
970 | 970 |
|
971 | 971 | pc = (struct pathComponent *)(ea + elen); |
972 | 972 |
|
973 | | - compstart = (char *)symname; |
| 973 | + compstart = symname; |
974 | 974 |
|
975 | 975 | do { |
976 | 976 | symname++; |
|
0 commit comments