Replace bzero with memset

...as memset is more likely to work with all compilers.
This commit is contained in:
David Henningsson 2012-10-27 15:25:52 +00:00
parent e7e07e17c4
commit 178615c189
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ new_fluid_coremidi_driver(fluid_settings_t* settings, handle_midi_event_func_t h
} }
fluid_settings_dupstr(settings, "midi.coremidi.id", &id); /* ++ alloc id string */ fluid_settings_dupstr(settings, "midi.coremidi.id", &id); /* ++ alloc id string */
bzero (clientid, sizeof(clientid)); memset (clientid, 0, sizeof(clientid));
if (id != NULL) { if (id != NULL) {
if (FLUID_STRCMP (id, "pid") == 0) { if (FLUID_STRCMP (id, "pid") == 0) {
snprintf (clientid, sizeof(clientid), " (%d)", getpid()); snprintf (clientid, sizeof(clientid), " (%d)", getpid());

View file

@ -143,7 +143,7 @@ new_fluid_portaudio_driver (fluid_settings_t *settings, fluid_synth_t *synth)
fluid_settings_getnum (settings, "synth.sample-rate", &sample_rate); fluid_settings_getnum (settings, "synth.sample-rate", &sample_rate);
fluid_settings_dupstr(settings, "audio.portaudio.device", &device); /* ++ alloc device name */ fluid_settings_dupstr(settings, "audio.portaudio.device", &device); /* ++ alloc device name */
bzero (&outputParams, sizeof (outputParams)); memset (&outputParams, 0, sizeof (outputParams));
outputParams.channelCount = 2; outputParams.channelCount = 2;
outputParams.suggestedLatency = (PaTime)period_size / sample_rate; outputParams.suggestedLatency = (PaTime)period_size / sample_rate;