Re: [PATCH 16/16] util: virstring: Remove virStrncpy

2021-03-10 Thread Ján Tomko
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

[PATCH 16/16] util: virstring: Remove virStrncpy

2021-03-02 Thread Peter Krempa
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 --- docs/coding-style.rst| 13