diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1997-01-21 21:22:57 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1997-01-21 21:22:57 +0000 |
commit | c6f3c0deb8c7f1e29847c17deab2057646339373 (patch) | |
tree | 9d254de5f34f17f5bdd2b922db3d79da2ccdb6d8 /usr.bin/locate | |
parent | dc1d38348efe73edaeb35c4f994d074b94673ce3 (diff) |
the locate code assumes that char max is 127 (char == signed char)
however on the powerpc port that is not the case (char == unsigned char)
Thus this change, if anyone has a better idea, feel free.
Diffstat (limited to 'usr.bin/locate')
-rw-r--r-- | usr.bin/locate/locate/locate.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/locate/locate/locate.h b/usr.bin/locate/locate/locate.h index 6eccf8867ee..1b8b07691e8 100644 --- a/usr.bin/locate/locate/locate.h +++ b/usr.bin/locate/locate/locate.h @@ -1,4 +1,4 @@ -/* $OpenBSD: locate.h,v 1.7 1996/10/20 00:52:57 michaels Exp $ */ +/* $OpenBSD: locate.h,v 1.8 1997/01/21 21:22:56 rahnds Exp $ */ /* * Copyright (c) 1989, 1993 @@ -47,6 +47,8 @@ #define LDC_MIN 0 #define LDC_MAX 28 +#undef CHAR_MAX +#define CHAR_MAX 127 /* 128-255 bigram codes (128 most common, as determined by 'updatedb') */ #define BIGRAM_MIN (UCHAR_MAX - CHAR_MAX) #define BIGRAM_MAX UCHAR_MAX |