aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/os/port2ip.c
diff options
context:
space:
mode:
authorKeith Vetter <keithv@fusion.com>1995-03-07 23:13:03 +0000
committerKeith Vetter <keithv@fusion.com>1995-03-07 23:13:03 +0000
commit7bfcaba07af807d42dbd9322a0f76f2c47f8209e (patch)
tree5fcbcbbc9e22ad169ac9a9637de57d07bee86725 /src/lib/krb5/os/port2ip.c
parent02c30f8256578b347556043d340d4bfe49b921e3 (diff)
downloadkrb5-7bfcaba07af807d42dbd9322a0f76f2c47f8209e.zip
krb5-7bfcaba07af807d42dbd9322a0f76f2c47f8209e.tar.gz
krb5-7bfcaba07af807d42dbd9322a0f76f2c47f8209e.tar.bz2
Port of most of the OS directory to the PC
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5079 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/os/port2ip.c')
-rw-r--r--src/lib/krb5/os/port2ip.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/krb5/os/port2ip.c b/src/lib/krb5/os/port2ip.c
index b6883d7..d8c5b23 100644
--- a/src/lib/krb5/os/port2ip.c
+++ b/src/lib/krb5/os/port2ip.c
@@ -24,13 +24,16 @@
* Take an ADDRPORT address and split into IP addr & port.
*/
+#define NEED_SOCKETS
#include "k5-int.h"
#ifdef KRB5_USE_INET
#include "os-proto.h"
+#ifndef _WINSOCKAPI_
#include <netinet/in.h>
+#endif
-krb5_error_code
+krb5_error_code INTERFACE
krb5_unpack_full_ipaddr(context, inaddr, adr, port)
krb5_context context;
const krb5_address *inaddr;
@@ -41,7 +44,7 @@ krb5_unpack_full_ipaddr(context, inaddr, adr, port)
unsigned short smushport;
register krb5_octet *marshal;
krb5_addrtype temptype;
- krb5_int32 templength;
+ krb5_ui_4 templength;
if (inaddr->addrtype != ADDRTYPE_ADDRPORT)
return KRB5_PROG_ATYPE_NOSUPP;