From: rahnds Date: Tue, 21 Jan 1997 21:22:56 +0000 (+0000) Subject: the locate code assumes that char max is 127 (char == signed char) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d16d1beec0092a9b1e142486e7783aa64131dcc2;p=openbsd 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. --- 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