mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
syntax-check: Suggest correct replacement for str(n)dup()
As of 610963cd0411 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:
|
||||
@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…
x
Reference in New Issue
Block a user