From e11a01cc34ab024b81ca83fec5182c6a444d4798 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 5 Apr 2006 17:19:37 +0000 Subject: - include inttypes.h as pointed out by Jason Schoon. - use shorter boilerplate and switch to USE_FEATURE_STAT_FORMAT while at it. --- coreutils/stat.c | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'coreutils') 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 +#include #include #include #include @@ -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 */ -- cgit v1.1