Remove `const` qualifier from the argument of `free()` and `realloc()`,
commit33b8d024bc268f2773c26e74a40dada11bb71e58
authorJiří Zárevúcky <zarevucky.jiri@gmail.com>
Tue, 16 Jan 2018 20:38:46 +0000 (16 21:38 +0100)
committerJiří Zárevúcky <zarevucky.jiri@gmail.com>
Tue, 16 Jan 2018 20:38:46 +0000 (16 21:38 +0100)
tree60e7cc02e49ef625d85ad1dfcb7bd15881b625b0
parentd39c46e03cdf4c2a6b309cc0244b5bf42b3b6000
Remove `const` qualifier from the argument of `free()` and `realloc()`,
as well as in numerous other variables that hold ownership of memory.

By convention, a pointer that holds ownership is _never_ qualified by `const`.
This is reflected in the standard type signature of `free()` and `realloc()`.
Allowing const pointers to hold ownership may seem superficially convenient,
but is actually quite confusing to experienced C programmers.
39 files changed:
uspace/app/bdsh/compl.c
uspace/app/edit/search_impl.h
uspace/app/mixerctl/mixerctl.c
uspace/app/wavplay/dplay.c
uspace/app/wavplay/drec.c
uspace/drv/bus/usb/vhc/hub/virthub.c
uspace/drv/platform/amdm37x/main.c
uspace/lib/c/generic/malloc.c
uspace/lib/c/include/ipc/devman.h
uspace/lib/c/include/malloc.h
uspace/lib/drv/generic/private/driver.h
uspace/lib/drv/generic/remote_audio_mixer.c
uspace/lib/drv/generic/remote_audio_pcm.c
uspace/lib/drv/include/audio_mixer_iface.h
uspace/lib/drv/include/audio_pcm_iface.h
uspace/lib/hound/include/hound/client.h
uspace/lib/hound/include/hound/protocol.h
uspace/lib/hound/src/client.c
uspace/lib/hound/src/protocol.c
uspace/lib/nic/include/nic.h
uspace/lib/posix/source/stdio/scanf.c
uspace/lib/usbdev/include/usb/dev/alternate_ifaces.h
uspace/lib/usbdev/include/usb/dev/device.h
uspace/lib/usbdev/include/usb/dev/request.h
uspace/lib/usbdev/src/devpoll.c
uspace/lib/usbdev/src/recognise.c
uspace/lib/usbdev/src/request.c
uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h
uspace/lib/usbhost/src/usb_transfer_batch.c
uspace/lib/usbvirt/include/usbvirt/device.h
uspace/srv/audio/hound/audio_data.c
uspace/srv/audio/hound/audio_data.h
uspace/srv/audio/hound/audio_sink.h
uspace/srv/audio/hound/audio_source.c
uspace/srv/audio/hound/audio_source.h
uspace/srv/audio/hound/hound.c
uspace/srv/audio/hound/hound.h
uspace/srv/audio/hound/iface.c
uspace/srv/devman/devman.h