]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix trivial windows compiler warning for vs2010
authorJeff Lenk <jeff@jefflenk.com>
Sat, 6 Sep 2014 03:43:52 +0000 (22:43 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Sat, 6 Sep 2014 03:43:52 +0000 (22:43 -0500)
src/switch_utils.c

index 8e62b97f54b4ec5864753b8a8182992456b3b1e7..81fe8a192f1877e368ade2aadd1524d91a2c6a48 100644 (file)
@@ -3700,7 +3700,7 @@ SWITCH_DECLARE(switch_status_t) switch_http_parse_header(char *buffer, uint32_t
                        if (p) {
                                *p++ = '\0';
 
-                               if (*p) request->port = atoi(p);
+                               if (*p) request->port = (switch_port_t)atoi(p);
                        }
                }
        }