Getting rid of a temporary variable
This commit is contained in:
parent
8a94ae1a86
commit
098df7b088
5
src/ls.c
5
src/ls.c
|
@ -497,7 +497,6 @@ static void _long_print(Prefs * prefs, char const * filename,
|
||||||
char * owner;
|
char * owner;
|
||||||
char * group;
|
char * group;
|
||||||
char date[15];
|
char date[15];
|
||||||
unsigned long int size = st->st_size;
|
|
||||||
|
|
||||||
_long_mode(mode, st->st_mode);
|
_long_mode(mode, st->st_mode);
|
||||||
owner = _long_owner(st->st_uid);
|
owner = _long_owner(st->st_uid);
|
||||||
|
@ -508,8 +507,8 @@ static void _long_print(Prefs * prefs, char const * filename,
|
||||||
_long_date(st->st_ctime, date);
|
_long_date(st->st_ctime, date);
|
||||||
else
|
else
|
||||||
_long_date(st->st_mtime, date);
|
_long_date(st->st_mtime, date);
|
||||||
printf("%s %u %s %s %6lu %s %s", mode, (unsigned)st->st_nlink,
|
printf("%s %u %s %s %6u %s %s", mode, (unsigned)st->st_nlink,
|
||||||
owner, group, size, date, basename);
|
owner, group, (unsigned)st->st_size, date, basename);
|
||||||
if(S_ISLNK(st->st_mode) && !(*prefs & PREFS_L)) /* FIXME not in POSIX? */
|
if(S_ISLNK(st->st_mode) && !(*prefs & PREFS_L)) /* FIXME not in POSIX? */
|
||||||
_print_link(filename);
|
_print_link(filename);
|
||||||
else if(*prefs & PREFS_F)
|
else if(*prefs & PREFS_F)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user