]> xenbits.xensource.com Git - libvirt.git/commitdiff
syntax-check: Suggest correct replacement for str(n)dup()
authorAndrea Bolognani <abologna@redhat.com>
Thu, 3 Feb 2022 14:15:33 +0000 (15:15 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 3 Feb 2022 14:39:46 +0000 (15:39 +0100)
As of 610963cd0411 VIR_STRDUP() no longer exists.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
build-aux/syntax-check.mk

index d5cdb3c70e5fdc68fedc1f902a0143588d067e40..b96d126bdc49a669880d271f00c2507cf6fe94e2 100644 (file)
@@ -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.