1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/net-mgmt/docsis/files/patch-md5.h
Dmitry Marakasov 17f3d4c9ac - Fix MD5 code on 64 bit platforms
- While here, use SF macro

PR:		134406
Submitted by:	"James E. Flemer" <jflemer at alum dot rpi dot edu> (maintainer)
2009-05-10 16:24:04 +00:00

23 lines
516 B
C

# $FreeBSD$
--- src/md5.h.orig 2004-03-17 07:09:31.000000000 -0800
+++ src/md5.h 2009-05-07 19:41:20.000000000 -0700
@@ -22,14 +22,16 @@
documentation and/or software.
*/
+#include <stdint.h>
+
/* POINTER defines a generic pointer type */
typedef unsigned char *POINTER;
/* UINT2 defines a two byte word */
-typedef unsigned short int UINT2;
+typedef uint16_t UINT2;
/* UINT4 defines a four byte word */
-typedef unsigned long int UINT4;
+typedef uint32_t UINT4;
/* MD5 context. */
typedef struct {