locate.bigram.c (e48156828f07fa172adb05776356d2b043544a05) | locate.bigram.c (834a8fa1694db39a356f1732d78f39ff76da422c) |
---|---|
1/* 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1995-2022 Wolfram Schneider <wosch@FreeBSD.org> 5 * Copyright (c) 1989, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 45 unchanged lines hidden (view full) --- 54 * List bigrams for 'updatedb' script. 55 * Use 'code' to encode a file using this output. 56 */ 57 58#include <capsicum_helpers.h> 59#include <err.h> 60#include <stdio.h> 61#include <stdlib.h> | 1/* 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1995-2022 Wolfram Schneider <wosch@FreeBSD.org> 5 * Copyright (c) 1989, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 45 unchanged lines hidden (view full) --- 54 * List bigrams for 'updatedb' script. 55 * Use 'code' to encode a file using this output. 56 */ 57 58#include <capsicum_helpers.h> 59#include <err.h> 60#include <stdio.h> 61#include <stdlib.h> |
62#include <sys/param.h> /* for MAXPATHLEN */ | |
63#include "locate.h" 64 | 62#include "locate.h" 63 |
65u_char buf1[MAXPATHLEN] = " "; 66u_char buf2[MAXPATHLEN]; | 64u_char buf1[LOCATE_PATH_MAX] = " "; 65u_char buf2[LOCATE_PATH_MAX]; |
67unsigned long bigram[UCHAR_MAX + 1][UCHAR_MAX + 1]; 68 69int 70main(void) 71{ 72 u_char *cp; 73 u_char *oldpath = buf1, *path = buf2; 74 u_int i, j; --- 41 unchanged lines hidden --- | 66unsigned long bigram[UCHAR_MAX + 1][UCHAR_MAX + 1]; 67 68int 69main(void) 70{ 71 u_char *cp; 72 u_char *oldpath = buf1, *path = buf2; 73 u_int i, j; --- 41 unchanged lines hidden --- |