Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ESIF/Products/ESIF_WS/Sources/esif_ws_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const char *Http_GetMimeType(const char *resource)
{ "txt", "text/plain" MIME_TYPE_ENCODING },
{ NULL, NULL }
};
char *extension = NULL;
const char *extension = NULL;

if (resource && ((extension = esif_ccb_strrchr(resource, '.')) != NULL)) {
size_t j = 0;
Expand Down
2 changes: 1 addition & 1 deletion IPF/Sources/Common/ipf_ipc_clisrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ esif_error_t IpfIpc_ParseServerAddress(
if (esif_ccb_stricmp(proto, IPC_PROTO_WEBSOCKET) == 0) {
char host[ESIF_IPADDR_LEN] = { 0 };
unsigned short port = IPC_DEFAULT_PORT;
char *portsep = esif_ccb_strpbrk(addr, ":/?");
const char *portsep = esif_ccb_strpbrk(addr, ":/?");
if (portsep) {
int portnum = (*portsep == ':' ? atoi(portsep + 1) : port);
port = (unsigned short)(portnum > 0 && portnum <= 0xffff ? portnum : 0);
Expand Down