diff options
Diffstat (limited to 'cddl/compat/opensolaris/misc/zmount.c')
-rw-r--r-- | cddl/compat/opensolaris/misc/zmount.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cddl/compat/opensolaris/misc/zmount.c b/cddl/compat/opensolaris/misc/zmount.c index d80a3b3..493a4fc 100644 --- a/cddl/compat/opensolaris/misc/zmount.c +++ b/cddl/compat/opensolaris/misc/zmount.c @@ -35,9 +35,10 @@ __FBSDID("$FreeBSD$"); #include <sys/mount.h> #include <sys/uio.h> #include <sys/mntent.h> +#include <assert.h> #include <stdio.h> #include <stdlib.h> -#include <assert.h> +#include <string.h> static void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, @@ -86,7 +87,7 @@ zmount(const char *spec, const char *dir, int mflag, char *fstype, assert(optlen > 0); optstr = strdup(optptr); - assert(optptr != NULL); + assert(optstr != NULL); iov = NULL; iovlen = 0; |