URI: 
       tstupid sun - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit cb98c6f8541314d566fe511dbd93ad37986d70e7
   DIR parent 7ea6c4fcbedc5a8039ed91a4a5d77d7366109cd8
  HTML Author: rsc <devnull@localhost>
       Date:   Fri, 14 Jan 2005 18:46:35 +0000
       
       stupid sun
       
       Diffstat:
         M src/cmd/tbl/tc.c                    |      14 +++++++-------
         M src/cmd/vac/dat.h                   |       5 +----
         M src/cmd/vac/vac.c                   |       1 +
       
       3 files changed, 9 insertions(+), 11 deletions(-)
       ---
   DIR diff --git a/src/cmd/tbl/tc.c b/src/cmd/tbl/tc.c
       t@@ -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;
       t@@ -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;
                        }
       t@@ -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;
                        }
                }
   DIR diff --git a/src/cmd/vac/dat.h b/src/cmd/vac/dat.h
       t@@ -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 */
   DIR diff --git a/src/cmd/vac/vac.c b/src/cmd/vac/vac.c
       t@@ -1,3 +1,4 @@
       +#include <u.h>
        #include <sys/stat.h>
        #include "stdinc.h"
        #include "vac.h"