File: 30_0002-mpi-Fix-redefinition-of-types.patch

package info (click to toggle)
libgcrypt20 1.11.2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 19,224 kB
  • sloc: ansic: 181,767; asm: 57,270; sh: 13,057; makefile: 880; sed: 37
file content (45 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From 5937b1730df8400f996d6b5a231f88e62e53ae98 Mon Sep 17 00:00:00 2001
From: NIIBE Yutaka <gniibe@fsij.org>
Date: Tue, 12 Aug 2025 16:31:14 +0900
Subject: [PATCH 2/6] mpi: Fix redefinition of types.

* mpi/mpi-internal.h (mpi_ptr_t): Remove, as it moved to mpi.h.
(mpi_size_t): Likewise.

--

Cherry-pick master commit of:
	85927387741fad2aba4f8cc01e3b10ff4ff4c57f

Fixes-commit: 88ae76d069c331ad947ecab8419df9a00f979b0e
GnuPG-bug-id: 7775
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
---
 mpi/mpi-internal.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/mpi/mpi-internal.h b/mpi/mpi-internal.h
index cdbd00a9..f18170fe 100644
--- a/mpi/mpi-internal.h
+++ b/mpi/mpi-internal.h
@@ -65,17 +65,14 @@
 /* The code can't handle KARATSUBA_THRESHOLD smaller than 2.  */
 #if KARATSUBA_THRESHOLD < 2
 #undef KARATSUBA_THRESHOLD
 #define KARATSUBA_THRESHOLD 2
 #endif
 
 
-typedef mpi_limb_t *mpi_ptr_t; /* pointer to a limb */
-typedef int mpi_size_t;        /* (must be a signed type) */
-
 #define ABS(x) (x >= 0 ? x : -x)
 #define MIN(l,o) ((l) < (o) ? (l) : (o))
 #define MAX(h,i) ((h) > (i) ? (h) : (i))
 #define RESIZE_IF_NEEDED(a,b) \
     do {			   \
 	if( (a)->alloced < (b) )   \
 	    mpi_resize((a), (b));  \
-- 
2.51.0