mirror of
https://github.com/holub/mame
synced 2025-05-22 21:58:57 +03:00
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:
parent
b86e015e32
commit
64c7591175
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user