From c0248be1c36f9057e9cdf4b1dc8b0c33066388af Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 29 Jul 2009 22:33:44 +0000 Subject: [PATCH] fix windows build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14424 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_shout/mod_shout.c | 4 ++-- src/switch.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index d5769d2a97..3c624b578e 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -111,7 +111,7 @@ struct shout_context { int mp3err; int dlen; FILE *fp; - int samplerate; + size_t samplerate; uint8_t thread_running; uint8_t shout_init; uint32_t prebuf; @@ -791,7 +791,7 @@ static switch_status_t shout_file_seek(switch_file_handle_t *handle, unsigned in } switch_buffer_zero(context->audio_buffer); - *cur_sample = mpg123_seek (context->mh, samples, whence); + *cur_sample = mpg123_seek (context->mh, (off_t)samples, whence); return *cur_sample >= 0 ? SWITCH_STATUS_SUCCESS : SWITCH_STATUS_FALSE; } diff --git a/src/switch.c b/src/switch.c index 1bb750ce86..18cfd545b6 100644 --- a/src/switch.c +++ b/src/switch.c @@ -741,15 +741,15 @@ int main(int argc, char *argv[]) if (destroy_status == SWITCH_STATUS_RESTART) { char buf[1024] = ""; - int i = 0; + int j = 0; switch_assert(local_argv[0]); switch_sleep(1000000); ret = (int)execv(local_argv[0], local_argv); fprintf(stderr, "Restart Failed [%s] resorting to plan b\n", strerror(errno)); - for(i = 0; i < argc; i++) { - switch_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%s ", local_argv[i]); + for(j = 0; i < argc; j++) { + switch_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%s ", local_argv[j]); } ret = system(buf);