summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-04 06:13:55 +0000
committerJim Meyering <jim@meyering.net>2003-11-04 06:13:55 +0000
commit45240f24819678065e0dab9e34a18ca53fa99a7b (patch)
tree78c338a6f308c2e3f3e9557e6672162d874805c7
parentd63bdf9a4d66e18abec04d6455efabb3c54e44a2 (diff)
downloadcoreutils-45240f24819678065e0dab9e34a18ca53fa99a7b.tar.xz
(main): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
-rw-r--r--src/od.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/od.c b/src/od.c
index 257ea43b3..7e03611f5 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;