git: Fix more wrong sizeof() usages, part 1/x

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Jun 16 04:24:26 PDT 2012


commit 8075c3b86874d51e347b753974316e6fb1c2dc8c
Author: Sascha Wildner <saw at online.de>
Date:   Sat Jun 16 12:31:23 2012 +0200

    Fix more wrong sizeof() usages, part 1/x
    
    These cases should all be taking the size of the pointed to struct etc.,
    instead of the pointer size.
    
    Found-with: Coccinelle (http://coccinelle.lip6.fr/)

Summary of changes:
 lib/libatm/ip_addr.c                     |    2 +-
 libexec/dma/spool.c                      |    2 +-
 sys/dev/netif/iwl/iwl2100.c              |   40 +++++++++++++++---------------
 sys/kern/kern_exit.c                     |    2 +-
 sys/kern/subr_firmware.c                 |    2 +-
 sys/net/sppp/if_spppsubr.c               |    2 +-
 sys/vfs/hammer/hammer_volume.c           |    4 +-
 tools/tools/net80211/wesside/dics/dics.c |    2 +-
 8 files changed, 28 insertions(+), 28 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8075c3b86874d51e347b753974316e6fb1c2dc8c


-- 
DragonFly BSD source repository





More information about the Commits mailing list