diff options
| author | isaki <isaki@NetBSD.org> | 2007-11-24 13:20:53 +0000 |
|---|---|---|
| committer | isaki <isaki@NetBSD.org> | 2007-11-24 13:20:53 +0000 |
| commit | 1c038e6834cae6806ebb97ae00a41d67e4d72ae1 (patch) | |
| tree | eab430c54f7ca1bc68225b960a8f82356c93bf2f /sys/lib/libsa/stat.c | |
| parent | 9ce1f92af748ec8139d3601fdf3b136b600eb57f (diff) | |
style, indent, and ANSI-fy.
Diffstat (limited to 'sys/lib/libsa/stat.c')
| -rw-r--r-- | sys/lib/libsa/stat.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/lib/libsa/stat.c b/sys/lib/libsa/stat.c index 6ca82c9acfe..3387e809f68 100644 --- a/sys/lib/libsa/stat.c +++ b/sys/lib/libsa/stat.c @@ -1,4 +1,4 @@ -/* $NetBSD: stat.c,v 1.6 2005/12/11 12:24:46 christos Exp $ */ +/* $NetBSD: stat.c,v 1.7 2007/11/24 13:20:57 isaki Exp $ */ /*- * Copyright (c) 1993 @@ -34,16 +34,14 @@ #include "stand.h" int -stat(str, sb) - const char *str; - struct stat *sb; +stat(const char *str, struct stat *sb) { int fd, rv; fd = open(str, 0); if (fd < 0) - return (-1); + return -1; rv = fstat(fd, sb); (void)close(fd); - return (rv); + return rv; } |
