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

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Jun 16 14:36:35 PDT 2012


commit 7eeb4207dd3b5eeb8d35e3e9d6de48d63a7810e6
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/7eeb4207dd3b5eeb8d35e3e9d6de48d63a7810e6


-- 
DragonFly BSD source repository





More information about the Commits mailing list