Lennart Poettering
62d74c78b5
coccinelle: add reallocarray() coccinelle script
...
Let's systematically make use of reallocarray() whereever we invoke
realloc() with a product of two values.
2018-03-02 12:39:07 +01:00
Zbigniew Jędrzejewski-Szmek
53e1b68390
Add SPDX license identifiers to source files under the LGPL
...
This follows what the kernel is doing, c.f.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fd54ace4721fc5ce2bb5aef6318fcf17f421460 .
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
6b430fdb7c
tree-wide: use mfree more
2016-10-16 23:35:39 -04:00
Lennart Poettering
b5efdb8af4
util-lib: split out allocation calls into alloc-util.[ch]
2015-10-27 13:45:53 +01:00
Lennart Poettering
a1e58e8ee1
tree-wide: use coccinelle to patch a lot of code to use mfree()
...
This replaces this:
free(p);
p = NULL;
by this:
p = mfree(p);
Change generated using coccinelle. Semantic patch is added to the
sources.
2015-09-09 08:19:27 +02:00
Thomas Hindoe Paaboel Andersen
2eec67acbb
remove unused includes
...
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use.
2015-02-23 23:53:42 +01:00
Lennart Poettering
955d98c9c1
everywhere: make use of new0() and macro() macros, and stop using perror()
2014-02-13 14:45:51 +01:00
Greg KH
29804cc1e0
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).
2014-01-31 11:55:01 +01:00
Kay Sievers
e3dc56a219
udev: declare some symbols static
2013-11-12 18:09:08 +01:00
Mauro Dreissig
cf2292f5ac
libudev: avoid leak during realloc failure
2012-11-13 01:59:33 +01:00
Kay Sievers
88a6477ef3
libudev: update copyright headers
2012-11-12 17:50:33 +01:00
Lennart Poettering
64825d3c58
fix a couple of issues found with llvm-analyze
2012-08-08 23:54:21 +02:00
Lucas De Marchi
b27ee00bf5
udev: use container_of() macro
2012-04-29 19:15:08 +02:00
Kay Sievers
21dbe43aec
docs: hook-up gtk-doc to 'make check'
2012-04-20 03:25:36 +02:00
Kay Sievers
bb061708d5
udev: move libudev, gudev to src/; move gudev/docs/, udev/docs/ to to docs/
2012-04-13 19:22:06 +02:00