summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/msdosfs/msdosfs_conv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/msdosfs/msdosfs_conv.c b/sys/msdosfs/msdosfs_conv.c
index 935a9fc710b..5883eeb58c5 100644
--- a/sys/msdosfs/msdosfs_conv.c
+++ b/sys/msdosfs/msdosfs_conv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_conv.c,v 1.9 2001/05/17 00:58:01 pvalchev Exp $ */
+/* $OpenBSD: msdosfs_conv.c,v 1.10 2003/07/29 19:26:38 mickey Exp $ */
/* $NetBSD: msdosfs_conv.c,v 1.24 1997/10/17 11:23:54 ws Exp $ */
/*-
@@ -67,7 +67,7 @@
/*
* Days in each month in a regular year.
*/
-u_short regyear[] = {
+const u_short regyear[] = {
31, 28, 31, 30, 31, 30,
31, 31, 30, 31, 30, 31
};
@@ -75,7 +75,7 @@ u_short regyear[] = {
/*
* Days in each month in a leap year.
*/
-u_short leapyear[] = {
+const u_short leapyear[] = {
31, 29, 31, 30, 31, 30,
31, 31, 30, 31, 30, 31
};
@@ -105,7 +105,7 @@ unix2dostime(tsp, ddp, dtp, dhp)
u_long inc;
u_long year;
u_long month;
- u_short *months;
+ const u_short *months;
/*
* If the time from the last conversion is the same as now, then
@@ -186,7 +186,7 @@ dos2unixtime(dd, dt, dh, tsp)
u_long m, month;
u_long y, year;
u_long days;
- u_short *months;
+ const u_short *months;
if (dd == 0) {
/*
@@ -231,7 +231,7 @@ dos2unixtime(dd, dt, dh, tsp)
tsp->tv_nsec = (dh % 100) * 10000000;
}
-static u_char
+static const u_char
unix2dos[256] = {
0, 0, 0, 0, 0, 0, 0, 0, /* 00-07 */
0, 0, 0, 0, 0, 0, 0, 0, /* 08-0f */
@@ -267,7 +267,7 @@ unix2dos[256] = {
0x9d, 0xeb, 0xe9, 0xea, 0x9a, 0xed, 0xe8, 0x98, /* f8-ff */
};
-static u_char
+static const u_char
dos2unix[256] = {
0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, /* 00-07 */
0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, /* 08-0f */
@@ -303,7 +303,7 @@ dos2unix[256] = {
0xb0, 0xa8, 0xb7, 0xb9, 0xb3, 0xb2, 0x3f, 0x3f, /* f8-ff */
};
-static u_char
+static const u_char
u2l[256] = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 00-07 */
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 08-0f */