All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Egger <Christoph.Egger@amd.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: tools/libfsimage: build fix
Date: Wed, 25 May 2011 16:21:20 +0200	[thread overview]
Message-ID: <4DDD1060.5020904@amd.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]


Fix warning: array subscript has type 'char'

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>

-- 
---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

[-- Attachment #2: xen_tools_libfsimage.diff --]
[-- Type: text/plain, Size: 793 bytes --]

diff -r 87ff9d4de6f0 tools/libfsimage/xfs/fsys_xfs.c
--- a/tools/libfsimage/xfs/fsys_xfs.c	Wed May 25 16:04:56 2011 +0200
+++ b/tools/libfsimage/xfs/fsys_xfs.c	Wed May 25 16:17:03 2011 +0200
@@ -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);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

             reply	other threads:[~2011-05-25 14:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25 14:21 Christoph Egger [this message]
2011-05-26 14:44 ` tools/libfsimage: build fix Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DDD1060.5020904@amd.com \
    --to=christoph.egger@amd.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.