blob: 59b8083c6fd6bd3f4dd30255ffa1be792dc0348b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
https://bugs.gentoo.org/943976
https://github.com/sleuthkit/sleuthkit/commit/dc9b299ea2c4fd4d79305df1e62073aac14fdb2e
From dc9b299ea2c4fd4d79305df1e62073aac14fdb2e Mon Sep 17 00:00:00 2001
From: Joel Uckelman <joel.uckelman@aon.com>
Date: Fri, 1 Nov 2024 18:11:25 +0000
Subject: [PATCH] Don't redefine bool. That causes collisions.
--- a/tsk/base/crc.h
+++ b/tsk/base/crc.h
@@ -91,7 +91,6 @@ Status : Copyright (C) Ross Williams, 1993. However, permission is
#ifndef DONE_STYLE
typedef unsigned long ulong;
-typedef unsigned bool;
typedef unsigned char * p_ubyte_;
#ifndef TRUE
@@ -120,8 +119,8 @@ typedef struct
int cm_width; /* Parameter: Width in bits [8,32]. */
ulong cm_poly; /* Parameter: The algorithm's polynomial. */
ulong cm_init; /* Parameter: Initial register value. */
- bool cm_refin; /* Parameter: Reflect input bytes? */
- bool cm_refot; /* Parameter: Reflect output CRC? */
+ unsigned cm_refin; /* Parameter: Reflect input bytes? */
+ unsigned cm_refot; /* Parameter: Reflect output CRC? */
ulong cm_xorot; /* Parameter: XOR this to output CRC. */
ulong cm_reg; /* Context: Context during execution. */
|