diff --git a/sesman/chansrv/sound.c b/sesman/chansrv/sound.c index 0cf32a89..7e03b598 100644 --- a/sesman/chansrv/sound.c +++ b/sesman/chansrv/sound.c @@ -1118,9 +1118,10 @@ process_pcm_message(int id, int size, struct stream *s) char *buf = (char *) g_malloc(g_bbuf_size, 0); if (buf != NULL) { + int i; silence_start_time = g_time3(); sending_silence = 1; - for (int i = 0; i < send_silence_times; i++) + for (i = 0; i < send_silence_times; i++) { g_memset(buf, 0, g_bbuf_size); sound_send_wave_data_chunk(buf, g_bbuf_size); diff --git a/sesman/sesexec/sesexec.c b/sesman/sesexec/sesexec.c index 4ec4ef7c..563a0695 100644 --- a/sesman/sesexec/sesexec.c +++ b/sesman/sesexec/sesexec.c @@ -517,5 +517,5 @@ main(int argc, char **argv) } g_deinit(); - g_exit(error); + return error; }