diff options
author | Ken Raeburn <raeburn@mit.edu> | 2011-09-04 23:52:34 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2011-09-04 23:52:34 +0000 |
commit | 4ba58f9b6b7ccb372f09e31ee3d302ffafd50b15 (patch) | |
tree | f0d339ede66f7af9153dd1fe016a46ee3aa5d372 /src/slave | |
parent | 3b5d496d3d63b28ebd2e23242a3422b1fa838e18 (diff) | |
download | krb5-4ba58f9b6b7ccb372f09e31ee3d302ffafd50b15.zip krb5-4ba58f9b6b7ccb372f09e31ee3d302ffafd50b15.tar.gz krb5-4ba58f9b6b7ccb372f09e31ee3d302ffafd50b15.tar.bz2 |
Reindent per krb5-batch-reindent.el.
Some minor reformatting added in places to avoid exceeding 80 columns.
Used Emacs 22.1 built-in C mode.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25144 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/slave')
-rw-r--r-- | src/slave/kprop_sock.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/slave/kprop_sock.c b/src/slave/kprop_sock.c index abd53af..a439b37 100644 --- a/src/slave/kprop_sock.c +++ b/src/slave/kprop_sock.c @@ -40,29 +40,29 @@ */ krb5_error_code sockaddr2krbaddr(krb5_context context, int family, struct sockaddr *sa, - krb5_address **dest) + krb5_address **dest) { krb5_address addr; addr.magic = KV5M_ADDRESS; if (family == AF_INET) { - struct sockaddr_in *sa4 = (struct sockaddr_in *) sa; - addr.addrtype = ADDRTYPE_INET; - addr.length = sizeof(sa4->sin_addr); - addr.contents = (krb5_octet *) &sa4->sin_addr; + struct sockaddr_in *sa4 = (struct sockaddr_in *) sa; + addr.addrtype = ADDRTYPE_INET; + addr.length = sizeof(sa4->sin_addr); + addr.contents = (krb5_octet *) &sa4->sin_addr; } else if (family == AF_INET6) { - struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *) sa; + struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *) sa; if (IN6_IS_ADDR_V4MAPPED(&sa6->sin6_addr)) { addr.addrtype = ADDRTYPE_INET; addr.contents = (krb5_octet *) &sa6->sin6_addr + 12; addr.length = 4; } else { - addr.addrtype = ADDRTYPE_INET6; - addr.length = sizeof(sa6->sin6_addr); - addr.contents = (krb5_octet *) &sa6->sin6_addr; - } + addr.addrtype = ADDRTYPE_INET6; + addr.length = sizeof(sa6->sin6_addr); + addr.contents = (krb5_octet *) &sa6->sin6_addr; + } } else - return KRB5_PROG_ATYPE_NOSUPP; + return KRB5_PROG_ATYPE_NOSUPP; return krb5_copy_addr(context, &addr, dest); } |