summaryrefslogtreecommitdiffstats
path: root/tools/checkxalloc.sh
Commit message (Collapse)AuthorAgeFilesLines
* checkxalloc: nudge regex, fix newfound instancesDave Reisner2012-03-201-1/+1
| | | | | | | | | | | | | | | | Using the -w flag with grep actually fought against us here, and hid some instances where xalloc functions weren't used. Discard it in favor of an explicit word boundary as a prefix to the function name, and extend our requirements on the trailing side of the pattern. This also fixes the few new instances that were overlooked because of the regex's deficiency. [kzak@redhat.com: - fix also newfound in findmnt - remove unnecessary checks after xallocs] Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add asprintf to checkxalloc scriptSami Kerola2012-03-181-1/+1
| | | | | Reported-By: Dave Reisner <d@falconindy.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: add checkxalloc to toplevel MakefileKarel Zak2012-01-041-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add new code checking scriptDave Reisner2012-01-041-0/+13
Finds usage of strdup, malloc, calloc, and realloc when xalloc.h is included. http://marc.info/?l=util-linux-ng&m=132438338929925&w=2 Signed-off-by: Dave Reisner <dreisner@archlinux.org>