From: Jim Meyering Date: Tue, 4 Nov 2003 06:13:55 +0000 (+0000) Subject: (main): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'. X-Git-Tag: v5.1.0~259 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45240f24819678065e0dab9e34a18ca53fa99a7b;p=thirdparty%2Fcoreutils.git (main): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'. The former is more maintainable and usually shorter. --- diff --git a/src/od.c b/src/od.c index 257ea43b38..7e03611f54 100644 --- a/src/od.c +++ b/src/od.c @@ -1667,7 +1667,7 @@ main (int argc, char **argv) n_specs = 0; n_specs_allocated = 5; - spec = xmalloc (n_specs_allocated * sizeof (struct tspec)); + spec = xmalloc (n_specs_allocated * sizeof *spec); format_address = format_address_std; address_base = 8;