X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fubik%2Fbeacon.c;h=f039557c4ec4d5d37262682bb312a899a22ff266;hp=3fc756c62d66b713154201a60fb4e3b2a144587b;hb=366a772a80357ab09a9dd02cb34ef87cdfab25ec;hpb=2c0184532bedf259aad338c2d18eeca2c9e3e196 diff --git a/src/ubik/beacon.c b/src/ubik/beacon.c index 3fc756c..f039557 100644 --- a/src/ubik/beacon.c +++ b/src/ubik/beacon.c @@ -25,6 +25,13 @@ RCSID("$Header$"); #endif #include #include +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include @@ -50,6 +57,7 @@ int (*ubik_CRXSecurityProc)(); char *ubik_CRXSecurityRock; afs_int32 ubikSecIndex; struct rx_securityClass *ubikSecClass; +static verifyInterfaceAddress(); /* Module responsible for both deciding if we're currently the sync site, @@ -170,7 +178,7 @@ ubeacon_InitServerListCommon(ame, info, clones, aservers) struct ubik_server *magicServer; /* verify that the addresses passed in are correct */ - if (code = verifyInterfaceAddress(&ame, info, aservers)) + if ((code = verifyInterfaceAddress(&ame, info, aservers))) return code; /* get the security index to use, if we can */ @@ -229,7 +237,7 @@ ubeacon_InitServerListCommon(ame, info, clones, aservers) } } else { i = 0; - while (servAddr = *aservers++) { + while ((servAddr = *aservers++)) { if (i >= MAXSERVERS) return UNHOSTS; /* too many hosts */ ts = (struct ubik_server *) malloc(sizeof(struct ubik_server)); memset(ts, 0, sizeof(struct ubik_server));