commit cb98c6f8541314d566fe511dbd93ad37986d70e7 from: rsc date: Fri Jan 14 18:46:35 2005 UTC stupid sun commit - 7ea6c4fcbedc5a8039ed91a4a5d77d7366109cd8 commit + cb98c6f8541314d566fe511dbd93ad37986d70e7 blob - 841680b6a46e67937d4bf49f4de2d8018e2b188b blob + 6323c267b090ab0e2b4237ee3c8f2fcc2b0c5515 --- src/cmd/tbl/tc.c +++ src/cmd/tbl/tc.c @@ -6,7 +6,7 @@ choochar(void) { /* choose funny characters to delimit fields */ int had[128], ilin, icol, k; - unsigned char *s; + char *s; for (icol = 0; icol < 128; icol++) had[icol] = 0; @@ -23,19 +23,19 @@ choochar(void) s = table[ilin][icol].col; if (point(s)) while (*s) - had[*s++] = 1; + had[(unsigned char)*s++] = 1; s = table[ilin][icol].rcol; if (point(s)) while (*s) - had[*s++] = 1; + had[(unsigned char)*s++] = 1; } } /* choose first funny character */ for ( s = "\002\003\005\006\007!%&#/?,:;<=>@`^~_{}+-*ABCDEFGHIJKMNOPQRSTUVWXYZabcdefgjkoqrstwxyz"; *s; s++) { - if (had[*s] == 0) { - F1 = *s; + if (had[(unsigned char)*s] == 0) { + F1 = (unsigned char)*s; had[F1] = 1; break; } @@ -44,8 +44,8 @@ choochar(void) for ( s = "\002\003\005\006\007:_~^`@;,<=>#%&!/?{}+-*ABCDEFGHIJKMNOPQRSTUVWXZabcdefgjkoqrstuwxyz"; *s; s++) { - if (had[*s] == 0) { - F2 = *s; + if (had[(unsigned char)*s] == 0) { + F2 = (unsigned char)*s; break; } } blob - ec15db4a9fc0236c1a6c5c3dbe0b0e6bfa242c93 blob + 869ea7a2ebb745c6de71018319f54cd5e02bb412 --- src/cmd/vac/dat.h +++ src/cmd/vac/dat.h @@ -1,10 +1,7 @@ typedef struct MetaBlock MetaBlock; typedef struct MetaEntry MetaEntry; -enum -{ - MaxBlock = (1UL<<31), -}; +#define MaxBlock (1UL<<31) enum { BytesPerEntry = 100, /* estimate of bytes per dir entries - determines number of index entries in the block */ blob - 53a66bebe1c5c753614b16bc8e7c1b96e23a2a6e blob + 761310b9429dc648495523a5c0cb246c143060e2 --- src/cmd/vac/vac.c +++ src/cmd/vac/vac.c @@ -1,3 +1,4 @@ +#include #include #include "stdinc.h" #include "vac.h"