From d16d1beec0092a9b1e142486e7783aa64131dcc2 Mon Sep 17 00:00:00 2001 From: rahnds Date: Tue, 21 Jan 1997 21:22:56 +0000 Subject: [PATCH] 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(-) 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 -- 2.20.1