DragonFly BSD
DragonFly commits List (threaded) for 2012-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 16 Jun 2012 14:36:35 -0700 (PDT)

commit 7eeb4207dd3b5eeb8d35e3e9d6de48d63a7810e6
Author: Sascha Wildner <saw@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]