Use FreeBSD's declarations of inet_ntoa and _ntop -- FreeBSD's

*definitions* were used before anyway, but the declarations now
conflict on 6.x

Use uint32_t instead of `unsigned long', where a 32-bit unsigned value
is needed -- this fixes the qfDES encryption/decryption on 64-bit
platforms.

Reported by:	pointyhat
Approved by:	portmgr	(kris)
This commit is contained in:
Mikhail Teterin 2005-03-26 20:50:06 +00:00
parent 3ea2a15c21
commit 1752dff84a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132000
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- src/net_udp.c Tue Jun 29 12:21:37 2004
+++ src/net_udp.c Thu Mar 24 13:17:14 2005
@@ -44,7 +44,4 @@
#include "debug.h"
#include "memory.h"
-#include "inet_pton.h"
-#include "inet_ntop.h"
-#include "vsnprintf.h"
#include "net_udp.h"

View File

@ -0,0 +1,9 @@
--- src/qfDES.c Thu Nov 18 17:49:09 1999
+++ src/qfDES.c Thu Mar 24 13:36:07 2005
@@ -13,5 +13,5 @@
#include "crypt_random.h"
-typedef unsigned long Word;
+typedef uint32_t Word;
#define B00 0x80000000