mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
syntax-check: Suggest correct replacement for str(n)dup()
As of 610963cd04
VIR_STRDUP() no longer exists.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
47d194139c
commit
d70d5eb6c5
@ -244,7 +244,7 @@ sc_prohobit_vsnprintf:
|
|||||||
|
|
||||||
sc_prohibit_strdup:
|
sc_prohibit_strdup:
|
||||||
@prohibit='\<strn?dup\> *\(' \
|
@prohibit='\<strn?dup\> *\(' \
|
||||||
halt='use VIR_STRDUP, not strdup' \
|
halt='use g_str(n)dup, not str(n)dup' \
|
||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
# Prefer virSetUIDGID.
|
# Prefer virSetUIDGID.
|
||||||
|
Loading…
Reference in New Issue
Block a user