mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
checkpatch: do not recommend qemu_strtok over strtok
If anything it should recommend strtok_r! Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
fe85453867
commit
5e43efb29a
@ -2463,8 +2463,8 @@ sub process {
|
||||
WARN("__func__ should be used instead of gcc specific __FUNCTION__\n" . $herecurr);
|
||||
}
|
||||
|
||||
# recommend qemu_strto* over strto*
|
||||
if ($line =~ /\b(strto.*?)\s*\(/) {
|
||||
# recommend qemu_strto* over strto* for numeric conversions
|
||||
if ($line =~ /\b(strto[^k].*?)\s*\(/) {
|
||||
WARN("consider using qemu_$1 in preference to $1\n" . $herecurr);
|
||||
}
|
||||
# check for module_init(), use category-specific init macros explicitly please
|
||||
|
Loading…
Reference in New Issue
Block a user