Fix -Wall warnings

Submitted-By:  Martin Blapp <mblapp@kassiopeja.lan.attic.ch>
This commit is contained in:
Nick Hibma 1999-10-08 19:56:45 +00:00
parent af2ea5aae6
commit ae0c2c7836
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52037
2 changed files with 4 additions and 3 deletions

View File

@ -657,7 +657,7 @@ getnfsargs(spec, nfsargsp)
#ifdef NFSKERB #ifdef NFSKERB
char *cp; char *cp;
#endif #endif
u_short tport; u_short tport = 0;
static struct nfhret nfhret; static struct nfhret nfhret;
static char nam[MNAMELEN + 1]; static char nam[MNAMELEN + 1];

View File

@ -80,7 +80,7 @@ main(argc, argv)
int argc; int argc;
char *argv[]; char *argv[];
{ {
int all, ch, errs, mnts; int all, ch, errs = 0, mnts;
char **typelist = NULL; char **typelist = NULL;
struct statfs *mntbuf; struct statfs *mntbuf;
@ -211,7 +211,8 @@ umountfs(name, typelist)
struct timeval pertry, try; struct timeval pertry, try;
CLIENT *clp; CLIENT *clp;
int so; int so;
char *type, *delimp, *hostp, *mntpt, *origname, rname[MAXPATHLEN]; char *type, *delimp = NULL, *hostp, *mntpt, *origname;
char rname[MAXPATHLEN];
if (realpath(name, rname) == NULL) { if (realpath(name, rname) == NULL) {
/* Continue and let the system call check it... */ /* Continue and let the system call check it... */