From 115708fd8265efe6943f32569e1b2b44c8e7f899 Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Tue, 5 Jun 2001 19:26:42 +0000 Subject: [PATCH] ubik-warnings-cleanup-20010605 more warning cleanup --- src/ubik/beacon.c | 2 +- src/ubik/udebug.c | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/ubik/beacon.c b/src/ubik/beacon.c index fe8ac9ec3..c43ab330d 100644 --- a/src/ubik/beacon.c +++ b/src/ubik/beacon.c @@ -438,9 +438,9 @@ ubeacon_Interact() { * 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; diff --git a/src/ubik/udebug.c b/src/ubik/udebug.c index 7145036b8..d8a2c1bc8 100644 --- a/src/ubik/udebug.c +++ b/src/ubik/udebug.c @@ -8,8 +8,15 @@ */ #include +#include #include #include +#ifdef HAVE_STRING_H +#include +#endif +#ifdef HAVE_STRINGS_H +#include +#endif #ifdef AFS_NT40_ENV #include #else @@ -18,6 +25,9 @@ #include #include #endif +#ifdev HAVE_UNISTD_H +#include +#endif #include #include @@ -38,7 +48,7 @@ register char *aport; { 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'; @@ -294,10 +304,12 @@ struct cmd_syndesc *as; { usdebug.currentDB, usdebug.up, usdebug.beaconSinceDown); } } + return (0); } #include "AFS_component_version_number.c" +int main(argc, argv) int argc; char **argv; { -- 2.39.5