tools/libfsimage: build fix
Fix warning: array subscript has type 'char'
Signed-off-by Christoph Egger <[email protected]>
Signature · 6 lines
---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
tools/libfsimage/xfs/fsys_xfs.c +3 -2
@@ -571,7 +571,7 @@ xfs_dir (fsi_file_t *ffi, char *dirname)continue ; } -if (!*dirname ||isspace (*dirname)) { +if (!*dirname ||isspace ((uint8_t )*dirname)) {if ((di_mode &IFMT ) !=IFREG ) { errnum =ERR_BAD_FILETYPE ;return 0 ;
@@ -588,7 +588,8 @@ xfs_dir (fsi_file_t *ffi, char *dirname)for (; *dirname =='/' ; dirname++); -for (rest = dirname; (ch = *rest) && !isspace (ch) && ch !='/' ; rest++); +for (rest = dirname; (ch = *rest) + && !isspace ((uint8_t )ch) && ch !='/' ; rest++); *rest =0 ; name =first_dentry (ffi, &new_ino);
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Ian Jackson
Acked-byChristoph Egger writes ("[Xen-devel] tools/libfsimage: build fix"):
Quoted 3 lines
Fix warning: array subscript has type 'char'
Signed-off-by Christoph Egger <[email protected]>
Acked-by Ian Jackson <[email protected]>
Committed-by Ian Jackson <[email protected]>
Thanks. You should probably also talk to the upstream for this code, which AIUI is grub, to have it fixed there.
Ian.