git: various: Swap transposed calloc() count/size arguments.

Matthew Dillon dillon at crater.dragonflybsd.org
Fri May 22 18:43:40 PDT 2026


commit a1fbaa2d9a3958ba9401ea34ee55a0fbdabad4e7
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date:   Thu May 22 07:46:40 2025 +0000

    various: Swap transposed calloc() count/size arguments.
    
    GCC 15 warns when calloc() is called with sizeof() as the first
    argument and count as the second (-Wcalloc-transposed-args).
    The correct prototype is calloc(count, size).

Summary of changes:
 games/hunt/hunt/list.c            |  2 +-
 sbin/ifconfig/regdomain.c         |  2 +-
 sbin/rconfig/client.c             |  2 +-
 sbin/rconfig/rconfig.c            |  2 +-
 sbin/restore/symtab.c             |  2 +-
 sbin/svc/remote.c                 | 10 +++++-----
 sbin/svc/subs.c                   |  2 +-
 usr.bin/dsynth/html.c             |  2 +-
 usr.bin/evtranalyze/evtranalyze.c |  2 +-
 usr.bin/ktrdump/ktrdump.c         |  2 +-
 usr.bin/localedef/collate.c       | 16 ++++++++--------
 usr.bin/ministat/ministat.c       |  6 +++---
 usr.sbin/vnconfig/vnconfig.c      |  2 +-
 13 files changed, 26 insertions(+), 26 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a1fbaa2d9a3958ba9401ea34ee55a0fbdabad4e7


-- 
DragonFly BSD source repository


More information about the Commits mailing list