File: 10-md5-64bit.patch

package info (click to toggle)
dictd 1.13.1%2Bdfsg-1.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,940 kB
  • sloc: ansic: 12,523; sh: 4,437; yacc: 512; makefile: 442; cpp: 277; lex: 256; perl: 175; awk: 12
file content (29 lines) | stat: -rw-r--r-- 683 bytes parent folder | download | duplicates (6)
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
From: gregor herrmann <gregoa@debian.org>
Date: Thu, 27 Jan 2011 00:25:50 +0100
Subject: 10 md5 64bit

Fix invalid definition on uint32 type on 64-bit systems (except for alpha),
which caused failures when 64-bit dict client tried to authenticate a user
against 32-bit dictd server (closes: #611203).
---
 md5.h | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/md5.h b/md5.h
index e264f68..e1f3db1 100644
--- a/md5.h
+++ b/md5.h
@@ -1,11 +1,8 @@
 #ifndef MD5_H
 #define MD5_H
 
-#ifdef __alpha
-typedef unsigned int uint32;
-#else
-typedef unsigned long uint32;
-#endif
+#include <stdint.h>
+typedef uint32_t uint32;
 
 struct MD5Context {
 	uint32 buf[4];