Fix -Wall warnings

Submitted-By:  Martin Blapp <mblapp@kassiopeja.lan.attic.ch>
This commit is contained in:
n_hibma 1999-10-08 19:56:45 +00:00
parent 9d94ff5831
commit ccd019bc55
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -80,7 +80,7 @@ main(argc, argv)
int argc;
char *argv[];
{
int all, ch, errs, mnts;
int all, ch, errs = 0, mnts;
char **typelist = NULL;
struct statfs *mntbuf;
@ -211,7 +211,8 @@ umountfs(name, typelist)
struct timeval pertry, try;
CLIENT *clp;
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) {
/* Continue and let the system call check it... */