diff options
author | 1997-01-21 21:22:56 +0000 | |
---|---|---|
committer | 1997-01-21 21:22:56 +0000 | |
commit | d16d1beec0092a9b1e142486e7783aa64131dcc2 (patch) | |
tree | 7afd16656013f255bede8b9823346ae1bfb2131f | |
parent | from the FIXES file: (diff) | |
download | wireguard-openbsd-d16d1beec0092a9b1e142486e7783aa64131dcc2.tar.xz wireguard-openbsd-d16d1beec0092a9b1e142486e7783aa64131dcc2.zip |
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.
-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 |