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
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... */