[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 07/11] audio/audio_template: use g_malloc0() to replace au
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v2 07/11] audio/audio_template: use g_malloc0() to replace audio_calloc() |
Date: |
Mon, 23 Jan 2023 11:03:48 +0000 |
User-agent: |
Mutt/2.2.9 (2022-11-12) |
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_t. This means that the
> function argument no longer has to be checked for negative values.
>
> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
> ---
> audio/audio_int.h | 4 ++--
> audio/audio_template.h | 18 ++++++++----------
> 2 files changed, 10 insertions(+), 12 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH v2 04/11] audio: remove unused #define AUDIO_STRINGIFY, (continued)
- [PATCH v2 04/11] audio: remove unused #define AUDIO_STRINGIFY, Volker Rümelin, 2023/01/21
- [PATCH v2 05/11] audio/mixeng: use g_new0() instead of audio_calloc(), Volker Rümelin, 2023/01/21
- [PATCH v2 03/11] audio: rename hardware store to backend, Volker Rümelin, 2023/01/21
- [PATCH v2 06/11] audio/alsaaudio: use g_new0() instead of audio_calloc(), Volker Rümelin, 2023/01/21
- [PATCH v2 08/11] audio/audio_template: use g_new0() to replace audio_calloc(), Volker Rümelin, 2023/01/21
- [PATCH v2 11/11] alsaaudio: reintroduce default recording settings, Volker Rümelin, 2023/01/21
- [PATCH v2 07/11] audio/audio_template: use g_malloc0() to replace audio_calloc(), Volker Rümelin, 2023/01/21
- Re: [PATCH v2 07/11] audio/audio_template: use g_malloc0() to replace audio_calloc(),
Daniel P . Berrangé <=
- [PATCH v2 02/11] audio: don't show unnecessary error messages, Volker Rümelin, 2023/01/21
- [PATCH v2 09/11] audio: remove audio_calloc() function, Volker Rümelin, 2023/01/21
- [PATCH v2 01/11] audio: log unimplemented audio device sample rates, Volker Rümelin, 2023/01/21
- [PATCH v2 10/11] alsaaudio: change default playback settings, Volker Rümelin, 2023/01/21
- Re: [PATCH v2 00/11] audio: more improvements, Marc-André Lureau, 2023/01/31