From 7f1cccb3ea2c94d27b1964530405c953d474bfd0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 9 Sep 2008 10:04:42 +0200 Subject: audio: replaced copyAudioFormat() with simple assignment The "!src" check in copyAudioFormat() used to hide bugs - one should never pass NULL to it. There is one caller which might pass NULL, add a check in this caller. Instead of doing mempcy(), we can simply assign the structures, which looks more natural. --- src/audio.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/audio.h') diff --git a/src/audio.h b/src/audio.h index 54c91fa3f..0b7ecea88 100644 --- a/src/audio.h +++ b/src/audio.h @@ -27,8 +27,6 @@ struct audio_format; struct tag; struct client; -void copyAudioFormat(struct audio_format *dest, const struct audio_format *src); - int cmpAudioFormat(const struct audio_format *dest, const struct audio_format *src); void getOutputAudioFormat(const struct audio_format *inFormat, -- cgit v1.2.3