diff options
Diffstat (limited to 'src/lib/krb5/os/dnsglue.h')
-rw-r--r-- | src/lib/krb5/os/dnsglue.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/lib/krb5/os/dnsglue.h b/src/lib/krb5/os/dnsglue.h index c73a433056..d8298862a5 100644 --- a/src/lib/krb5/os/dnsglue.h +++ b/src/lib/krb5/os/dnsglue.h @@ -1,3 +1,4 @@ +/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * lib/krb5/os/dnsglue.h * @@ -8,7 +9,7 @@ * require a specific license from the United States Government. * It is the responsibility of any person or organization contemplating * export to obtain such a license before exporting. - * + * * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and * distribute this software and its documentation for any purpose and * without fee is hereby granted, provided that the above copyright @@ -59,11 +60,11 @@ #endif /* WSHELPER */ #if HAVE_SYS_PARAM_H -#include <sys/param.h> /* for MAXHOSTNAMELEN */ +#include <sys/param.h> /* for MAXHOSTNAMELEN */ #endif #ifndef MAXHOSTNAMELEN -#define MAXHOSTNAMELEN 64 /* if we can't find it elswhere */ +#define MAXHOSTNAMELEN 64 /* if we can't find it elswhere */ #endif #ifndef MAXDNAME @@ -124,9 +125,9 @@ * Given moving pointer PTR offset from BASE, return true if adding * INCR to PTR doesn't move it PTR than MAX bytes from BASE. */ -#define INCR_OK(base, max, ptr, incr) \ - ((incr) <= (max) - ((const unsigned char *)(ptr) \ - - (const unsigned char *)(base))) +#define INCR_OK(base, max, ptr, incr) \ + ((incr) <= (max) - ((const unsigned char *)(ptr) \ + - (const unsigned char *)(base))) /* * SAFE_GETUINT16 @@ -136,21 +137,21 @@ * failure, goto LABEL. */ -#define SAFE_GETUINT16(base, max, ptr, incr, s, label) \ - do { \ - if (!INCR_OK(base, max, ptr, incr)) goto label; \ - (s) = (unsigned short)(p)[0] << 8 \ - | (unsigned short)(p)[1]; \ - (p) += (incr); \ +#define SAFE_GETUINT16(base, max, ptr, incr, s, label) \ + do { \ + if (!INCR_OK(base, max, ptr, incr)) goto label; \ + (s) = (unsigned short)(p)[0] << 8 \ + | (unsigned short)(p)[1]; \ + (p) += (incr); \ } while (0) struct krb5int_dns_state; int krb5int_dns_init(struct krb5int_dns_state **, char *, int, int); int krb5int_dns_nextans(struct krb5int_dns_state *, - const unsigned char **, int *); + const unsigned char **, int *); int krb5int_dns_expand(struct krb5int_dns_state *, - const unsigned char *, char *, int); + const unsigned char *, char *, int); void krb5int_dns_fini(struct krb5int_dns_state *); #endif /* KRB5_DNS_LOOKUP */ |