diff options
author | Keith Vetter <keithv@fusion.com> | 1995-04-28 01:18:29 +0000 |
---|---|---|
committer | Keith Vetter <keithv@fusion.com> | 1995-04-28 01:18:29 +0000 |
commit | a82fd641101d8360c7ae3a65b5d66d4430b4f2cc (patch) | |
tree | 76a2e97d2b2cc2fe20c89e98f3a9f0e8052d2fc0 /src/lib/krb5/os/mk_faddr.c | |
parent | 7b98ef33147ea6a7b1365f4d6d716d9d7e17af9f (diff) | |
download | krb5-a82fd641101d8360c7ae3a65b5d66d4430b4f2cc.tar.gz krb5-a82fd641101d8360c7ae3a65b5d66d4430b4f2cc.tar.xz krb5-a82fd641101d8360c7ae3a65b5d66d4430b4f2cc.zip |
Fixes so that the Unix changes no longer breaks on the PC
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5587 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/os/mk_faddr.c')
-rw-r--r-- | src/lib/krb5/os/mk_faddr.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/lib/krb5/os/mk_faddr.c b/src/lib/krb5/os/mk_faddr.c index 3d090edd8..e2256418d 100644 --- a/src/lib/krb5/os/mk_faddr.c +++ b/src/lib/krb5/os/mk_faddr.c @@ -28,13 +28,13 @@ #include "k5-int.h" #ifdef KRB5_USE_INET - + #include "os-proto.h" #ifndef _WINSOCKAPI_ #include <netinet/in.h> #endif -krb5_error_code INTERFACE +krb5_error_code krb5_make_fulladdr(context, saddr, kaddr) krb5_context context; struct sockaddr_in * saddr; @@ -58,14 +58,14 @@ krb5_make_fulladdr(context, saddr, kaddr) tmp16 = ADDRTYPE_INET; *marshal++ = 0x00; *marshal++ = 0x00; - *marshal++ = tmp16 & 0xff; - *marshal++ = (tmp16 >> 8) & 0xff; + *marshal++ = (krb5_octet) (tmp16 & 0xff); + *marshal++ = (krb5_octet) ((tmp16 >> 8) & 0xff); tmp32 = sizeof(smushaddr); - *marshal++ = tmp32 & 0xff; - *marshal++ = (tmp32 >> 8) & 0xff; - *marshal++ = (tmp32 >> 16) & 0xff; - *marshal++ = (tmp32 >> 24) & 0xff; + *marshal++ = (krb5_octet) (tmp32 & 0xff); + *marshal++ = (krb5_octet) ((tmp32 >> 8) & 0xff); + *marshal++ = (krb5_octet) ((tmp32 >> 16) & 0xff); + *marshal++ = (krb5_octet) ((tmp32 >> 24) & 0xff); (void) memcpy((char *)marshal, (char *)&smushaddr, sizeof(smushaddr)); marshal += sizeof(smushaddr); @@ -73,14 +73,14 @@ krb5_make_fulladdr(context, saddr, kaddr) tmp16 = ADDRTYPE_IPPORT; *marshal++ = 0x00; *marshal++ = 0x00; - *marshal++ = tmp16 & 0xff; - *marshal++ = (tmp16 >> 8) & 0xff; + *marshal++ = (krb5_octet) (tmp16 & 0xff); + *marshal++ = (krb5_octet) ((tmp16 >> 8) & 0xff); tmp32 = sizeof(smushport); - *marshal++ = tmp32 & 0xff; - *marshal++ = (tmp32 >> 8) & 0xff; - *marshal++ = (tmp32 >> 16) & 0xff; - *marshal++ = (tmp32 >> 24) & 0xff; + *marshal++ = (krb5_octet) (tmp32 & 0xff); + *marshal++ = (krb5_octet) ((tmp32 >> 8) & 0xff); + *marshal++ = (krb5_octet) ((tmp32 >> 16) & 0xff); + *marshal++ = (krb5_octet) ((tmp32 >> 24) & 0xff); (void) memcpy((char *)marshal, (char *)&smushport, sizeof(smushport)); marshal += sizeof(smushport); |