From: Oliver Stoeneberg [mailto:oliverst@online.de]

Sent: Sunday, December 21, 2008 3:28 AM
To: submit@mamedev.org
Subject: minor stuff

Hi,

just a small one:
- adds a ATTR_PRINTF in inptport.c
- removes an unnecessary memset in emu/sound/rf5c68.c

So long
Oliver
This commit is contained in:
Aaron Giles 2008-12-22 03:34:54 +00:00
parent b86e015e32
commit 64c7591175
2 changed files with 1 additions and 2 deletions

View File

@ -628,7 +628,7 @@ INLINE const char *get_port_tag(const input_port_config *port, char *tempbuffer)
buffer
-------------------------------------------------*/
INLINE void *error_buf_append(char *errorbuf, int errorbuflen, const char *format, ...)
INLINE void* ATTR_PRINTF(3,4) error_buf_append(char *errorbuf, int errorbuflen, const char *format, ...)
{
int curlen = (errorbuf != NULL) ? strlen(errorbuf) : 0;
int bytesleft = errorbuflen - curlen;

View File

@ -126,7 +126,6 @@ static SND_START( rf5c68 )
/* allocate memory for the chip */
struct rf5c68pcm *chip = auto_malloc(sizeof(*chip));
memset(chip, 0, sizeof(*chip));
memset(chip->data, 0xff, sizeof(chip->data));
/* allocate the stream */
chip->stream = stream_create(device, 0, 2, clock / 384, chip, rf5c68_update);