summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-04-05 17:19:37 +0000
committerBernhard Reutner-Fischer2006-04-05 17:19:37 +0000
commite11a01cc34ab024b81ca83fec5182c6a444d4798 (patch)
tree1224f2f1e961453dc238a69ec19080743fff27c0 /coreutils
parent886f6afc8a570978670f1a9356c9dfa51bb124f9 (diff)
downloadbusybox-e11a01cc34ab024b81ca83fec5182c6a444d4798.zip
busybox-e11a01cc34ab024b81ca83fec5182c6a444d4798.tar.gz
- include inttypes.h as pointed out by Jason Schoon.
- use shorter boilerplate and switch to USE_FEATURE_STAT_FORMAT while at it.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/stat.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c
index 30a2a62..57fe3ee 100644
--- a/coreutils/stat.c
+++ b/coreutils/stat.c
@@ -1,3 +1,4 @@
+/* vi:set ts=4:*/
/*
* stat -- display file or file system status
*
@@ -8,23 +9,11 @@
* Written by Michael Meskes
* Taken from coreutils and turned into a busybox applet by Mike Frysinger
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
+ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include <stdio.h>
+#include <inttypes.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
@@ -540,9 +529,7 @@ int stat_main(int argc, char **argv)
int (*statfunc)(char const *, char const *) = do_stat;
flags = bb_getopt_ulflags(argc, argv, "ftL"
-#ifdef CONFIG_FEATURE_STAT_FORMAT
- "c:", &format
-#endif
+ USE_FEATURE_STAT_FORMAT("c:", &format)
);
if (flags & 1) /* -f */