From 45240f24819678065e0dab9e34a18ca53fa99a7b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 4 Nov 2003 06:13:55 +0000 Subject: [PATCH] (main): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'. The former is more maintainable and usually shorter. --- src/od.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2