From 6ca409e0e4c198fe3081346eebbae3f068fe605a Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 12 Aug 2007 20:58:27 +0000 Subject: trylink: produce even more info about final link stage trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k --- coreutils/stat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'coreutils/stat.c') diff --git a/coreutils/stat.c b/coreutils/stat.c index 7c72127c5..0fddea2bb 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c @@ -21,7 +21,7 @@ #define OPT_DEREFERENCE (1<<2) #define OPT_SELINUX (1<<3) -static char buf[sizeof("YYYY-MM-DD HH:MM:SS.000000000")]; +static char buf[sizeof("YYYY-MM-DD HH:MM:SS.000000000")] ALIGN1; static char const * file_type(struct stat const *st) { @@ -70,7 +70,7 @@ static char const *human_fstype(long f_type) int i; static const struct types { long type; - const char * const fs; + const char *const fs; } humantypes[] = { { 0xADFF, "affs" }, { 0x1Cd1, "devpts" }, @@ -118,7 +118,7 @@ static char const *human_fstype(long f_type) #if ENABLE_FEATURE_STAT_FORMAT /* print statfs info */ static void print_statfs(char *pformat, const size_t buf_len, const char m, - const char * const filename, void const *data + const char *const filename, void const *data USE_SELINUX(, security_context_t scontext)) { struct statfs const *statfsbuf = data; @@ -168,7 +168,7 @@ static void print_statfs(char *pformat, const size_t buf_len, const char m, /* print stat info */ static void print_stat(char *pformat, const size_t buf_len, const char m, - const char * const filename, void const *data + const char *const filename, void const *data USE_SELINUX(, security_context_t scontext)) { #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) -- cgit v1.2.3