diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2000-06-20 07:58:58 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2000-06-20 07:58:58 +0000 |
commit | 776a1f06ae8b7106a529b3cbf5c4b3c5e70dfcb9 (patch) | |
tree | b73ea229545e20b76e0f41e174a053098909a408 /usr.bin/tcfs/tcfs_flags.c | |
parent | c3c99f121a3abe960ffe947542b04d7d0f22f28e (diff) |
add openbsd tags. rearrange headers as per style(9) and indent.
replace some strcpy by strlcpy.
Diffstat (limited to 'usr.bin/tcfs/tcfs_flags.c')
-rw-r--r-- | usr.bin/tcfs/tcfs_flags.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.bin/tcfs/tcfs_flags.c b/usr.bin/tcfs/tcfs_flags.c index cc87f87ca1b..acb7bb0139d 100644 --- a/usr.bin/tcfs/tcfs_flags.c +++ b/usr.bin/tcfs/tcfs_flags.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcfs_flags.c,v 1.5 2000/06/20 01:29:14 provos Exp $ */ +/* $OpenBSD: tcfs_flags.c,v 1.6 2000/06/20 07:58:57 fgsch Exp $ */ /* * Transparent Cryptographic File System (TCFS) for NetBSD @@ -12,17 +12,17 @@ * Base utility set v0.1 */ -#include <stdio.h> -#include <errno.h> -#include <fcntl.h> #include <sys/types.h> +#include <sys/mount.h> +#include <sys/param.h> +#include <sys/stat.h> +#include <sys/wait.h> #include <ctype.h> +#include <errno.h> +#include <fcntl.h> #include <pwd.h> +#include <stdio.h> #include <unistd.h> -#include <sys/param.h> -#include <sys/mount.h> -#include <sys/wait.h> -#include <sys/stat.h> #include <miscfs/tcfs/tcfs.h> #include <miscfs/tcfs/tcfs_fileinfo.h> @@ -34,9 +34,9 @@ tcfs_getflags(int fd) tcfs_flags r; struct stat s; - if (fstat(fd, &s) < 0) { + if (fstat(fd, &s) < 0) r.flag = -1; - } else + else r.flag = s.st_flags; return (r); |