git: Replace local array size calculations with NELEM().

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Feb 17 17:43:26 PST 2018


commit e62ef63cd8bf9a1124d7110b8e05ff70a95d58e1
Author: Sascha Wildner <saw at online.de>
Date:   Sun Feb 18 02:42:43 2018 +0100

    Replace local array size calculations with NELEM().

Summary of changes:
 bin/df/df.c                                  |  2 +-
 lib/libcam/camlib.c                          |  2 +-
 lib/libcrypt/crypt-sha256.c                  |  4 ++--
 lib/libcrypt/crypt-sha512.c                  |  4 ++--
 lib/libipsec/pfkey.c                         |  6 ++----
 lib/libipsec/test-policy.c                   |  3 +--
 lib/libstand/ext2fs.c                        |  4 +---
 libexec/bootpd/hwaddr.c                      |  2 +-
 libexec/bootpd/tools/bootptest/print-bootp.c |  2 +-
 libexec/pppoed/pppoed.c                      |  3 +--
 libexec/rbootd/bpf.c                         |  2 +-
 libexec/rpc.rstatd/rstat_proc.c              |  2 +-
 libexec/talkd/print.c                        |  4 ++--
 sbin/fdisk/fdisk.c                           |  2 +-
 sbin/fsdb/fsdb.c                             |  6 ++----
 sbin/ifconfig/ifbridge.c                     |  3 +--
 sbin/ifconfig/iflagg.c                       |  6 +++---
 sbin/kldconfig/kldconfig.c                   |  2 +-
 sbin/natd/natd.c                             |  4 ++--
 sbin/ping6/ping6.c                           |  2 +-
 sys/dev/sound/pci/emu10kx.c                  |  4 ++--
 sys/net/lagg/if_lagg.c                       |  3 +--
 test/testcases/crypto/aesctr/aesctr.c        |  2 +-
 test/testcases/crypto/aesxts/aes_xts.c       |  2 +-
 usr.bin/at/at.c                              |  2 +-
 usr.bin/gzip/gzip.c                          |  2 +-
 usr.bin/kdump/kdump.c                        |  3 +--
 usr.bin/netstat/ipsec.c                      |  3 +--
 usr.bin/rpcgen/rpc_main.c                    |  4 ++--
 usr.bin/systat/main.c                        |  5 ++---
 usr.bin/systat/mbufs.c                       |  2 +-
 usr.bin/systat/sensors.c                     |  2 +-
 usr.bin/talk/invite.c                        |  2 +-
 usr.bin/top/m_dragonfly.c                    |  3 +--
 usr.bin/uname/uname.c                        |  2 +-
 usr.bin/uuencode/uuencode.c                  |  3 +--
 usr.bin/ypcat/ypcat.c                        |  4 ++--
 usr.bin/ypmatch/ypmatch.c                    |  4 ++--
 usr.bin/ypwhich/ypwhich.c                    |  4 ++--
 usr.sbin/boot0cfg/boot0cfg.c                 |  4 ++--
 usr.sbin/config/main.c                       |  2 +-
 usr.sbin/cpucontrol/cpucontrol.c             |  2 +-
 usr.sbin/makewhatis/makewhatis.c             |  2 +-
 usr.sbin/moused/moused.c                     |  6 +++---
 usr.sbin/ndp/ndp.c                           |  8 ++++----
 usr.sbin/pfctl/pfctl_parser.c                | 24 ++++++++----------------
 usr.sbin/ppp/bundle.c                        |  3 +--
 usr.sbin/ppp/cbcp.c                          |  5 ++---
 usr.sbin/ppp/ccp.c                           |  5 ++---
 usr.sbin/ppp/chap.c                          |  3 +--
 usr.sbin/ppp/command.c                       | 12 ++++++------
 usr.sbin/ppp/datalink.c                      |  4 ++--
 usr.sbin/ppp/defs.c                          |  2 +-
 usr.sbin/ppp/filter.c                        |  4 ++--
 usr.sbin/ppp/fsm.c                           |  6 +++---
 usr.sbin/ppp/hdlc.c                          |  3 +--
 usr.sbin/ppp/iface.c                         |  2 +-
 usr.sbin/ppp/ip.c                            |  4 ++--
 usr.sbin/ppp/ipcp.c                          |  3 +--
 usr.sbin/ppp/ipv6cp.c                        |  2 +-
 usr.sbin/ppp/lcp.c                           |  3 +--
 usr.sbin/ppp/main.c                          |  5 ++---
 usr.sbin/ppp/ncp.c                           |  4 +---
 usr.sbin/ppp/pap.c                           |  3 +--
 usr.sbin/ppp/physical.c                      |  2 +-
 usr.sbin/pstat/pstat.c                       |  2 +-
 usr.sbin/rarpd/rarpd.c                       |  2 +-
 usr.sbin/rtadvd/if.c                         |  6 +++---
 usr.sbin/rtadvd/rtadvd.c                     |  6 +++---
 usr.sbin/rtsold/if.c                         |  3 +--
 usr.sbin/rwhod/rwhod.c                       |  2 +-
 usr.sbin/setkey/test-policy.c                |  3 +--
 usr.sbin/syslogd/syslogd.c                   |  2 +-
 usr.sbin/traceroute/traceroute.c             |  2 +-
 usr.sbin/traceroute6/traceroute6.c           |  2 +-
 75 files changed, 119 insertions(+), 155 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list