mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-25 12:04:47 +00:00
Squash even more warnings
This commit is contained in:
1 parent
879261981f
commit
7c37d75bf4
3 files changed
+4
-4
No files matched your search
@@ -64,7 +64,7 @@ unsigned short mg_url_port(const char *url) {
|
||||
if (memcmp(url, "wss:", 4) == 0 || memcmp(url, "https:", 6) == 0) port = 443;
|
||||
if (memcmp(url, "mqtt:", 5) == 0) port = 1883;
|
||||
if (memcmp(url, "mqtts:", 6) == 0) port = 8883;
|
||||
if (u.port) port = (uint16_t) atoi(url + u.port);
|
||||
if (u.port) port = (unsigned short) atoi(url + u.port);
|
||||
return port;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user