]> git.ipfire.org Git - thirdparty/util-linux.git/commit
checkxalloc: nudge regex, fix newfound instances
authorDave Reisner <dreisner@archlinux.org>
Tue, 20 Mar 2012 08:44:40 +0000 (09:44 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Mar 2012 08:44:40 +0000 (09:44 +0100)
commit99d618c0eb5fc7dc0d4bb39df3ce5d680ab5b8e2
tree3b0303acde572267b7ef28eddf8d0357de007585
parent27b35a6d557c91b0ec9ef22e4ac6840766a434f3
checkxalloc: nudge regex, fix newfound instances

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>
fdisk/sfdisk.c
misc-utils/findmnt.c
sys-utils/swapon.c
tools/checkxalloc.sh