chiark / gitweb /
use memzero(foo, length); for all memset(foo, 0, length); calls
authorGreg KH <gregkh@linuxfoundation.org>
Fri, 31 Jan 2014 05:51:32 +0000 (06:51 +0100)
committerTom Gundersen <teg@jklm.no>
Fri, 31 Jan 2014 10:55:01 +0000 (11:55 +0100)
commit29804cc1e0f37ee34301530fd7f1eb8550be464e
treeba287b984b216279bb342579a9d1039383ca3a39
parentb5cfa7408c4cb68e9bb232fc34b07fd03c915617
use memzero(foo, length); for all memset(foo, 0, length); calls

In trying to track down a stupid linker bug, I noticed a bunch of
memset() calls that should be using memzero() to make it more "obvious"
that the options are correct (i.e. 0 is not the length, but the data to
set).  So fix up all current calls to memset(foo, 0, length) to
memzero(foo, length).
24 files changed:
src/boot/boot-efi.c
src/bootchart/svg.c
src/bus-proxyd/bus-proxyd.c
src/journal/fsprg.c
src/journal/journal-file.c
src/libsystemd-daemon/sd-daemon.c
src/libsystemd/sd-bus/bus-kernel.c
src/libsystemd/sd-bus/bus-message.c
src/libudev/libudev-device.c
src/libudev/libudev-list.c
src/libudev/libudev-monitor.c
src/python-systemd/_journal.c
src/readahead/readahead-collect.c
src/shared/hashmap.c
src/shared/util.c
src/test/test-libudev.c
src/udev/cdrom_id/cdrom_id.c
src/udev/scsi_id/scsi_serial.c
src/udev/udev-builtin-input_id.c
src/udev/udev-ctrl.c
src/udev/udev-event.c
src/udev/udev-rules.c
src/udev/udevadm-monitor.c
src/udev/udevd.c