martin 98/04/01 06:09:09
Modified: src/os/bs2000 ebcdic.c ebcdic.h
Log:
Correct the type of the translation tables: now cocnsistently 'const unsigned
char[]'
Revision Changes Path
1.6 +3 -3 apache-1.3/src/os/bs2000/ebcdic.c
Index: ebcdic.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/os/bs2000/ebcdic.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -u -r1.5 -r1.6
--- ebcdic.c 1998/03/31 12:53:38 1.5
+++ ebcdic.c 1998/04/01 14:09:08 1.6
@@ -88,7 +88,7 @@
*/
/* The bijective ebcdic-to-ascii table: */
-unsigned char os_toascii_strictly[256] = {
+const unsigned char os_toascii_strictly[256] = {
/*00*/ 0x00, 0x01, 0x02, 0x03, 0x85, 0x09, 0x86, 0x7f,
0x87, 0x8d, 0x8e, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /*................*/
/*10*/ 0x10, 0x11, 0x12, 0x13, 0x8f, 0x0a, 0x08, 0x97,
@@ -137,7 +137,7 @@
* needed in the server.
*/
/* ebcdic-to-ascii with \012 mapped to ASCII-\n */
-unsigned char os_toascii[256] = {
+const unsigned char os_toascii[256] = {
/*00*/ 0x00, 0x01, 0x02, 0x03, 0x85, 0x09, 0x86, 0x7f,
0x87, 0x8d, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /*................*/
/*10*/ 0x10, 0x11, 0x12, 0x13, 0x8f, 0x0a, 0x08, 0x97,
@@ -190,7 +190,7 @@
e0 44 45 42 46 43 47 9c 48 54 51 52 53 58 55 56 57 *................*
f0 8c 49 cd ce cb cf cc e1 70 c0 de db dc 8d 8e df *................*
*/
-unsigned char os_toebcdic[256] = {
+const unsigned char os_toebcdic[256] = {
/*00*/ 0x00, 0x01, 0x02, 0x03, 0x37, 0x2d, 0x2e, 0x2f,
0x16, 0x05, 0x15, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /*................*/
/*10*/ 0x10, 0x11, 0x12, 0x13, 0x3c, 0x3d, 0x32, 0x26,
1.3 +2 -2 apache-1.3/src/os/bs2000/ebcdic.h
Index: ebcdic.h
===================================================================
RCS file: /home/cvs/apache-1.3/src/os/bs2000/ebcdic.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -u -r1.2 -r1.3
--- ebcdic.h 1998/01/16 14:23:33 1.2
+++ ebcdic.h 1998/04/01 14:09:08 1.3
@@ -1,7 +1,7 @@
#include <sys/types.h>
-extern const char os_toascii[256];
-extern const char os_toebcdic[256];
+extern const unsigned char os_toascii[256];
+extern const unsigned char os_toebcdic[256];
void ebcdic2ascii(unsigned char *dest, const unsigned char *srce, size_t
count);
void ascii2ebcdic(unsigned char *dest, const unsigned char *srce, size_t
count);