* Return Values : 0 on success, non-zero on failure
*/
static verifyInterfaceAddress(ame, info, aservers)
+ afs_uint32 *ame; /* one of my interface addr in net byte order */
struct afsconf_cell *info;
afs_uint32 aservers[]; /* list of all possible server addresses */
- afs_uint32 *ame; /* one of my interface addr in net byte order */
{
afs_uint32 myAddr[UBIK_MAX_INTERFACE_ADDR], *servList, tmpAddr;
int count, index, found, i, j, totalServers, start, end;
*/
#include <afs/param.h>
+#include <afsconfig.h>
#include <sys/types.h>
#include <stdlib.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#else
#include <netinet/in.h>
#include <netdb.h>
#endif
+#ifdev HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include <signal.h>
#include <time.h>
register afs_int32 total;
total = 0;
- while (tc = *aport++) {
+ while ((tc = *aport++)) {
if (tc < '0' || tc > '9') return -1; /* bad port number */
total *= 10;
total += tc - (int) '0';
usdebug.currentDB, usdebug.up, usdebug.beaconSinceDown);
}
}
+ return (0);
}
#include "AFS_component_version_number.c"
+int
main(argc, argv)
int argc;
char **argv; {