]> git.ipfire.org Git - thirdparty/util-linux.git/commit
wall: fix calloc cal [-Werror=calloc-transposed-args]
authorKarel Zak <kzak@redhat.com>
Wed, 17 Jan 2024 11:37:08 +0000 (12:37 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Apr 2024 07:05:10 +0000 (09:05 +0200)
commitbebf8f40219d626384a4bee3456c63d136939cc0
treec74189b54277f9b1d17328c15ce2a828653f4650
parenta98558aef1e347adba2cb0028c036ce156aa68a7
wall: fix calloc cal [-Werror=calloc-transposed-args]

term-utils/wall.c:143:37: error: xcalloc sizes specified with sizeof in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  143 |         buf->groups = xcalloc(sizeof(*buf->groups), buf->ngroups);
      |                                     ^
term-utils/wall.c:143:37: note: earlier argument should specify number of elements, later size of each element

Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 07f0f0f5bd1e5e2268257ae1ff6d76a9b6c6ea8b)
term-utils/wall.c