summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-01-29 12:25:01 +0100
committerJim Meyering <jim@meyering.net>2007-01-29 12:25:01 +0100
commitfc9b328ab4c4c6315179fd6cdf54cfdb823c9222 (patch)
treee97cb98a619ffa8923c37b434ee81d64666114df /src
parentc1f8d483879846a8d207355a67ce388778a8e773 (diff)
downloadcoreutils-fc9b328ab4c4c6315179fd6cdf54cfdb823c9222.tar.xz
Shave 8 bytes off the size of "struct fileinfo".
* src/ls.c (fileinfo): Put all members of type "bool" together.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ls.c b/src/ls.c
index 6e610c4f4..fa9a2fad1 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -156,22 +156,23 @@ struct fileinfo
/* The file name. */
char *name;
- struct stat stat;
- bool stat_ok;
-
/* For symbolic link, name of the file linked to, otherwise zero. */
char *linkname;
+ struct stat stat;
+
+ enum filetype filetype;
+
/* For symbolic link and long listing, st_mode of file linked to, otherwise
zero. */
mode_t linkmode;
+ bool stat_ok;
+
/* For symbolic link and color printing, true if linked-to file
exists, otherwise false. */
bool linkok;
- enum filetype filetype;
-
#if USE_ACL
/* For long listings, true if the file has an access control list. */
bool have_acl;