]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix windows build errors (MODAPP-212, FSBUILD-116, FSBUILD-117)
authorMichael Jerris <mike@jerris.com>
Wed, 11 Feb 2009 18:08:04 +0000 (18:08 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 11 Feb 2009 18:08:04 +0000 (18:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11883 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_fax/mod_fax.c
src/mod/applications/mod_lcr/mod_lcr.c
src/mod/applications/mod_rss/mod_rss.c

index 53cc0aba81a317e80080dbad85490820dad329ec..0eac1b9f32806e8afc86b5b0e34ac90a5c9a54f7 100644 (file)
@@ -403,8 +403,8 @@ void process_fax(switch_core_session_t *session, const char *data, application_m
        switch_frame_t *read_frame = { 0 };
        switch_frame_t write_frame = { 0 };
     switch_codec_implementation_t read_impl = {0};
-    switch_core_session_get_read_impl(session, &read_impl);
        int16_t *buf = NULL;
+    switch_core_session_get_read_impl(session, &read_impl);
 
        /* make sure we have a valid channel when starting the FAX application */
        channel = switch_core_session_get_channel(session);
index e1a247b4e597a86ae0509085e53146ed62b59645..c6327f47161ec9a008de1d6d7bb6af74f5aa2d36 100644 (file)
@@ -242,8 +242,8 @@ static switch_bool_t set_db_random()
 static switch_bool_t test_lcr_sql(const char *sql)
 {
        char * tsql;
-       tsql = switch_mprintf(sql, "5555551212");
        switch_bool_t retval = SWITCH_FALSE;
+       tsql = switch_mprintf(sql, "5555551212");
        
        if (globals.odbc_dsn) {
                if(switch_odbc_handle_exec(globals.master_odbc, tsql, NULL)
@@ -839,6 +839,7 @@ SWITCH_STANDARD_API(dialplan_lcr_admin_function)
                if(argc < 2) {
                        goto usage;
                }
+               switch_assert(argv[0]);
                if(!strcasecmp(argv[0], "show") && !strcasecmp(argv[1], "profiles")) {
                        for (hi = switch_hash_first(NULL, globals.profile_hash); hi; hi = switch_hash_next(hi)) {
                                switch_hash_this(hi, NULL, NULL, &val);
index fe82e7d6c5fd2e7a8d324d71680c5afb713f001b..a870a1eef3fa26c3ff0e8f654d1941521c565b54 100644 (file)
@@ -185,8 +185,9 @@ SWITCH_STANDARD_APP(rss_function)
        const char *vcf = NULL;
        char *chanvars = switch_channel_build_param_string(channel, NULL, NULL);
        switch_codec_implementation_t read_impl = {0};
+       uint32_t rate, interval;
     switch_core_session_get_read_impl(session, &read_impl);
-       uint32_t rate, interval = read_impl.microseconds_per_packet / 1000;
+       interval = read_impl.microseconds_per_packet / 1000;
 
        if ((vcf = switch_channel_get_variable(channel, "rss_alt_config"))) {
                cf = vcf;