Mercurial > hg > xmms-sid
changeset 213:405b647cbd8d
Use xs_memset() instead of memset() directly
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 15 Dec 2004 11:00:05 +0000 |
parents | ebb6e23f6015 |
children | 575686094eb1 |
files | src/xmms-sid.c |
diffstat | 1 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xmms-sid.c Wed Dec 15 10:34:03 2004 +0000 +++ b/src/xmms-sid.c Wed Dec 15 11:00:05 2004 +0000 @@ -20,8 +20,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <pthread.h> + +#ifdef HAVE_STDLIB_H #include <stdlib.h> +#endif + +#ifdef HAVE_STRING_H #include <string.h> +#else +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif +#endif + #include <stdio.h> #include <errno.h> @@ -123,7 +134,7 @@ xs_stop(); /* Initialize status */ - memset(&xs_status, 0, sizeof(xs_status)); + xs_memset(&xs_status, 0, sizeof(xs_status)); xs_status.audioFrequency = xs_cfg.audioFrequency; xs_status.audioBitsPerSample = xs_cfg.audioBitsPerSample; xs_status.audioChannels = xs_cfg.audioChannels; @@ -186,7 +197,7 @@ XSDEBUG("xs_init()\n"); /* Initialize and get configuration */ - memset(&xs_cfg, 0, sizeof(xs_cfg)); + xs_memset(&xs_cfg, 0, sizeof(xs_cfg)); xs_read_configuration(); /* Initialize subsystems */