From 02bfc69c03a52ffaee61b8a4ca9d84ab5281c474 Mon Sep 17 00:00:00 2001 From: emaste Date: Sun, 21 May 2017 20:00:49 +0000 Subject: [PATCH] msdosfs: constify Obtained from: NetBSD Sponsored by: The FreeBSD Foundation --- sys/fs/msdosfs/msdosfs_conv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/fs/msdosfs/msdosfs_conv.c b/sys/fs/msdosfs/msdosfs_conv.c index 770b126b9477..6b81f0d17d3f 100644 --- a/sys/fs/msdosfs/msdosfs_conv.c +++ b/sys/fs/msdosfs/msdosfs_conv.c @@ -73,7 +73,7 @@ static uint16_t unix2winchr(const u_char **, size_t *, int, struct msdosfsmount * 2 - character ('.' and ' ') should be skipped in DOS file name, * and generation number inserted. */ -static u_char +static const u_char unix2dos[256] = { /* iso8859-1 -> cp850 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 00-07 */ @@ -110,7 +110,7 @@ unix2dos[256] = { 0x9d, 0xeb, 0xe9, 0xea, 0x9a, 0xed, 0xe8, 0x98, /* f8-ff */ }; -static u_char +static const u_char dos2unix[256] = { /* cp850 -> iso8859-1 */ 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, /* 00-07 */ @@ -147,7 +147,7 @@ dos2unix[256] = { 0xb0, 0xa8, 0xb7, 0xb9, 0xb3, 0xb2, 0x3f, 0x3f, /* f8-ff */ }; -static u_char +static const u_char u2l[256] = { /* tolower */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 00-07 */ @@ -184,7 +184,7 @@ u2l[256] = { 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, /* f8-ff */ }; -static u_char +static const u_char l2u[256] = { /* toupper */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 00-07 */