[PATCH 16/16] util: virstring: Remove virStrncpy
Ján Tomko
jtomko at redhat.com
Wed Mar 10 18:09:48 UTC 2021
On a Tuesday in 2021, Peter Krempa wrote:
>The function is now unused and motivated users to write crazy parsers
>which were hard to understand, had pointless error paths just to avoid
>few memory allocations.
>
>Remove the function as we're fine with g_strndup and virStrcpy.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> docs/coding-style.rst | 13 ------------
> src/libvirt_private.syms | 1 -
> src/util/virstring.c | 44 ----------------------------------------
> src/util/virstring.h | 2 --
> 4 files changed, 60 deletions(-)
>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210310/09fff913/attachment-0001.sig>
More information about the libvir-list
mailing list