Re: [PATCH v2 07/11] audio/audio_template: use g_malloc0() to replace audio_calloc()

2023-01-23 Thread Daniel P . Berrangé
On Sat, Jan 21, 2023 at 10:47:31AM +0100, Volker Rümelin wrote: > Use g_malloc0() as a direct replacement for audio_calloc(). > > Since the type of the parameter n_bytes of the function g_malloc0() > is unsigned, the type of the variables voice_size_out and > voice_size_in has been changed to size

[PATCH v2 07/11] audio/audio_template: use g_malloc0() to replace audio_calloc()

2023-01-21 Thread Volker Rümelin
Use g_malloc0() as a direct replacement for audio_calloc(). Since the type of the parameter n_bytes of the function g_malloc0() is unsigned, the type of the variables voice_size_out and voice_size_in has been changed to size_t. This means that the function argument no longer has to be checked for