]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid,libmount: Do not use void* in calculations [cppcheck]
authorBoris Egorov <egorov@linux.com>
Tue, 19 Jan 2016 05:42:26 +0000 (11:42 +0600)
committerBoris Egorov <egorov@linux.com>
Tue, 19 Jan 2016 06:59:12 +0000 (12:59 +0600)
commitfef0063119b2e756cdf006d5c089552ca4d964ee
treee6f7473ae2d0ad4b5018767fcb192be49dfe3afb
parent18b76be61c11fd5f11fcb84aa6a946d3b03d7225
libblkid,libmount: Do not use void* in calculations [cppcheck]

[libblkid/src/superblocks/zfs.c:179]: (portability) 'label' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined.
[libblkid/src/superblocks/zfs.c:237]: (portability) 'label' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
[libblkid/src/topology/topology.c:221]: (portability) 'chn.data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
[libmount/src/fs.c:153]: (portability) 'old' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined.
[libmount/src/fs.c:154]: (portability) 'new' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
libblkid/src/superblocks/zfs.c
libblkid/src/topology/topology.c
libmount/src/fs.c