Author: emaste
Date: Sun May 21 20:00:49 2017
New Revision: 318597
URL: https://svnweb.freebsd.org/changeset/base/318597

Log:
  msdosfs: constify
  
  Obtained from:        NetBSD
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/fs/msdosfs/msdosfs_conv.c

Modified: head/sys/fs/msdosfs/msdosfs_conv.c
==============================================================================
--- head/sys/fs/msdosfs/msdosfs_conv.c  Sun May 21 19:48:16 2017        
(r318596)
+++ head/sys/fs/msdosfs/msdosfs_conv.c  Sun May 21 20:00:49 2017        
(r318597)
@@ -73,7 +73,7 @@ static uint16_t unix2winchr(const u_char
  * 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 */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to