diff options
author | obrien <obrien@FreeBSD.org> | 2008-12-26 22:55:38 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2008-12-26 22:55:38 +0000 |
commit | f18ef1805e675d2dad4785cccc40c457cef00dab (patch) | |
tree | cf11b5396171a94566ea52262009f87699d7cfe5 /sbin/mount/getmntopts.c | |
parent | ff0e186a51698053fbe3b75af8d908c95e62986f (diff) | |
download | FreeBSD-src-f18ef1805e675d2dad4785cccc40c457cef00dab.zip FreeBSD-src-f18ef1805e675d2dad4785cccc40c457cef00dab.tar.gz |
style(9)
Diffstat (limited to 'sbin/mount/getmntopts.c')
-rw-r--r-- | sbin/mount/getmntopts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c index 0c0e0fe..194b3df 100644 --- a/sbin/mount/getmntopts.c +++ b/sbin/mount/getmntopts.c @@ -130,7 +130,7 @@ checkpath(const char *path, char *resolved) struct stat sb; if (realpath(path, resolved) != NULL && stat(resolved, &sb) == 0) { - if (!S_ISDIR(sb.st_mode)) + if (!S_ISDIR(sb.st_mode)) errx(EX_USAGE, "%s: not a directory", resolved); } else errx(EX_USAGE, "%s: %s", resolved, strerror(errno)); @@ -176,7 +176,7 @@ build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, char val[255] = { 0 }; va_start(ap, fmt); - vsnprintf(val, sizeof(val), fmt, ap); + vsnprintf(val, sizeof(val), fmt, ap); va_end(ap); build_iovec(iov, iovlen, name, strdup(val), (size_t)-1); } |