mirror_frr/tools/coccinelle
David Lamparter fefa5e0ff5 *: fix ctype (isalpha & co.) casts
The correct cast for these is (unsigned char), because "char" could be
signed and thus have some negative value.  isalpha & co. expect an int
arg that is positive, i.e. 0-255.  So we need to cast to (unsigned char)
when calling any of these.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2019-08-06 16:54:52 +02:00
..
alloc_cast.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
array_size.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
badty.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
badzero.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
boolconv.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
boolinit.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
boolreturn.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
cond_no_effect.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
ctype_cast.cocci *: fix ctype (isalpha & co.) casts 2019-08-06 16:54:52 +02:00
deref_null.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
double_lock.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
doublebitand.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
doubleinit.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
doubletest.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
hash_const.cocci lib: hashing functions should take const arguments 2019-05-14 21:23:08 +00:00
ifaddr.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
ifnullxfree.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
itnull.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
mini_lock.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
noderef.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
replace-strncpy.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
returnvar.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
semicolon.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
strncpy_truncation.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
unsigned_lesser_than_zero.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
vty_check.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
vty_index.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
xcalloc-simple.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
xfree.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
xfreeaddr.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
xmalloc_returnval.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00
zprivs.cocci tools: add coccinelle spatches 2019-02-26 17:40:40 +00:00