mirror of https://gitee.com/openkylin/libvirt.git
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
build-aux
|
@ -244,7 +244,7 @@ sc_prohobit_vsnprintf:
|
|||
|
||||
sc_prohibit_strdup:
|
||||
@prohibit='\<strn?dup\> *\(' \
|
||||
halt='use VIR_STRDUP, not strdup' \
|
||||
halt='use g_str(n)dup, not str(n)dup' \
|
||||
$(_sc_search_regexp)
|
||||
|
||||
# Prefer virSetUIDGID.
|
||||
|
|
Loading…
Reference in New Issue