Help out gcc. clang understands.

sys_generic.c:1510: warning: 'precision' may be used uninitialized
*** [sys_generic.o] Error code 1
This commit is contained in:
Peter Wemm 2013-06-29 04:35:04 +00:00
parent d849f17dca
commit 76665df9bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252367
2 changed files with 2 additions and 0 deletions

View File

@ -1510,6 +1510,7 @@ selsocket(struct socket *so, int events, struct timeval *tvp, struct thread *td)
sbintime_t asbt, precision, rsbt;
int error;
precision = 0; /* stupid gcc! */
if (tvp != NULL) {
rtv = *tvp;
if (rtv.tv_sec < 0 || rtv.tv_usec < 0 ||

View File

@ -201,6 +201,7 @@ vfs_register(struct vfsconf *vfc)
} else
vfc->vfc_typenum = maxvfsconf++;
TAILQ_INSERT_TAIL(&vfsconf, vfc, vfc_list);
vfc->vfc_flags |= VFCF_JAIL;
/*
* If this filesystem has a sysctl node under vfs