diff options
| author | lukem <lukem@NetBSD.org> | 2003-10-27 00:16:21 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2003-10-27 00:16:21 +0000 |
| commit | 6182ef67e20c5cf59cb2d5e50261998a4db14567 (patch) | |
| tree | c6bac1c06ba78edf9195c300523c2aff3ab9493d /usr.bin/stat/stat.c | |
| parent | 2c67a735b8d5629ccb73bb636c477785d8042360 (diff) | |
be consistent using #if HAVE_STRUCT_STAT_ST_xxx (versus #ifdef)
Diffstat (limited to 'usr.bin/stat/stat.c')
| -rw-r--r-- | usr.bin/stat/stat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c index 3e2e632ace7..bfea7c881ca 100644 --- a/usr.bin/stat/stat.c +++ b/usr.bin/stat/stat.c @@ -1,4 +1,4 @@ -/* $NetBSD: stat.c,v 1.15 2003/10/27 00:12:43 lukem Exp $ */ +/* $NetBSD: stat.c,v 1.16 2003/10/27 00:16:21 lukem Exp $ */ /* * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ #include <sys/cdefs.h> #if !defined(lint) -__RCSID("$NetBSD: stat.c,v 1.15 2003/10/27 00:12:43 lukem Exp $"); +__RCSID("$NetBSD: stat.c,v 1.16 2003/10/27 00:16:21 lukem Exp $"); #endif #if ! HAVE_NBTOOL_CONFIG_H @@ -670,14 +670,14 @@ format1(const struct stat *st, case SHOW_st_atime: gottime = 1; secs = st->st_atime; -#ifdef HAVE_STRUCT_STAT_ST_MTIMENSEC +#if HAVE_STRUCT_STAT_ST_MTIMENSEC nsecs = st->st_atimensec; #endif /* FALLTHROUGH */ case SHOW_st_mtime: if (!gottime) { secs = st->st_mtime; -#ifdef HAVE_STRUCT_STAT_ST_MTIMENSEC +#if HAVE_STRUCT_STAT_ST_MTIMENSEC nsecs = st->st_mtimensec; #endif } @@ -685,7 +685,7 @@ format1(const struct stat *st, case SHOW_st_ctime: if (!gottime) { secs = st->st_ctime; -#ifdef HAVE_STRUCT_STAT_ST_MTIMENSEC +#if HAVE_STRUCT_STAT_ST_MTIMENSEC nsecs = st->st_ctimensec; #endif } |
