summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_shortname.c
diff options
context:
space:
mode:
authorLove Hörnquist Åstrand <lha@samba.org>2005-07-12 22:22:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:20:14 -0500
commit61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a (patch)
tree7b554690182fd2be55ba76a793227c3d3e46064c /source4/ntvfs/posix/pvfs_shortname.c
parentdf426e5d4a33491c6b4bd8878ae3fbf29e728b5f (diff)
downloadsamba-61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a.tar.gz
r8394: Make sure the argument to ctype is*(3) macros are unsigned char as
required by ISO C99. (This used to be commit 56fd21c806e816cf4c3d23881f26474f858b45e2)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_shortname.c')
-rw-r--r--source4/ntvfs/posix/pvfs_shortname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_shortname.c b/source4/ntvfs/posix/pvfs_shortname.c
index 59a3d346407..eb797dc7aa0 100644
--- a/source4/ntvfs/posix/pvfs_shortname.c
+++ b/source4/ntvfs/posix/pvfs_shortname.c
@@ -469,7 +469,7 @@ static char *name_map(struct pvfs_mangle_context *ctx,
if (! FLAG_CHECK(lead_chars[i], FLAG_ASCII)) {
lead_chars[i] = '_';
}
- lead_chars[i] = toupper(lead_chars[i]);
+ lead_chars[i] = toupper((unsigned char)lead_chars[i]);
}
for (;i<ctx->mangle_prefix;i++) {
lead_chars[i] = '_';
@@ -487,7 +487,7 @@ static char *name_map(struct pvfs_mangle_context *ctx,
extension_length = 0;
if (dot_p) {
for (i=1; extension_length < 3 && dot_p[i]; i++) {
- char c = dot_p[i];
+ unsigned char c = dot_p[i];
if (FLAG_CHECK(c, FLAG_ASCII)) {
extension[extension_length++] = toupper(c);
}