From c6f3c0deb8c7f1e29847c17deab2057646339373 Mon Sep 17 00:00:00 2001 From: "Dale S. Rahn" Date: Tue, 21 Jan 1997 21:22:57 +0000 Subject: 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. --- usr.bin/locate/locate/locate.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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 -- cgit v1.2.3