]> 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>
Wed, 17 Jan 2024 11:37:08 +0000 (12:37 +0100)
commit07f0f0f5bd1e5e2268257ae1ff6d76a9b6c6ea8b
treecc3a04b2242d28b93f86ffa9a01c9c6a2c93d3a6
parenteb02db62685cca30e5afc61652c8b6e9cd0774e9
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>
term-utils/wall.c