summaryrefslogtreecommitdiff
path: root/mbone/sdr/patches/patch-ah
blob: 25dee1bdcc27e5eb372a17945cb493a0b6085dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ah,v 1.4 1999/01/01 07:58:29 garbled Exp $
--- src/polluted.c.orig	Thu Dec 31 23:09:13 1998
+++ src/polluted.c	Thu Dec 31 23:11:35 1998
@@ -1,3 +1,6 @@
+#ifdef HAVE_SYS_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include "sdr.h"
 #include "prototypes.h"
 #include "prototypes_crypt.h"
@@ -200,7 +203,11 @@
 #ifdef NEVER
     encrypt_announcement(adstr, &encdata, &(addata->length), key);
 #else
+#ifdef HAVE_SYS_INTTYPES_H
+    encrypt_announcement(adstr, &encdata, (intptr_t)addata->length, key);
+#else
     encrypt_announcement(adstr, &encdata, (int *)addata->length, key);
+#endif
 #endif
     addata->data=malloc(addata->length);
     memcpy(addata->data, encdata, addata->length);