From: Jim Meyering Date: Fri, 12 Aug 2005 08:17:54 +0000 (+0000) Subject: (sort_files): Use cleaner `sizeof *VAR_NAME' rather than `sizeof (TYPE_NAME)'. X-Git-Tag: CPPI-1_12~193 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=585c8e075ba4f2166320f861f4647da0ad02ce5b;p=thirdparty%2Fcoreutils.git (sort_files): Use cleaner `sizeof *VAR_NAME' rather than `sizeof (TYPE_NAME)'. --- diff --git a/src/ls.c b/src/ls.c index 8157e7d9d1..dc01eaeba7 100644 --- a/src/ls.c +++ b/src/ls.c @@ -3012,7 +3012,7 @@ sort_files (void) } } - qsort (files, files_index, sizeof (struct fileinfo), func); + qsort (files, files_index, sizeof *files, func); } /* List all the files now in the table. */