tcp_cnd
fix warning of casting const to non const
This commit is contained in:
@@ -338,7 +338,7 @@ static void tcp_cmd_list_files(struct tcp_pcb* pcb, int argc, char** argv) {
|
||||
* @param[in] argv The arguments
|
||||
*/
|
||||
static void tcp_cmd_set_image(struct tcp_pcb* pcb, int argc, char** argv) {
|
||||
char* ext = NULL;
|
||||
const char* ext = NULL;
|
||||
if (argc >= 1) {
|
||||
ext = llfs_get_filename_ext(argv[0]);
|
||||
if (strcmp(ext, "bmp") != 0) {
|
||||
@@ -371,7 +371,7 @@ static void tcp_cmd_set_image(struct tcp_pcb* pcb, int argc, char** argv) {
|
||||
* @param[in] argv The arguments
|
||||
*/
|
||||
static void tcp_cmd_set_gif(struct tcp_pcb* pcb, int argc, char** argv) {
|
||||
char* ext = NULL;
|
||||
const char* ext = NULL;
|
||||
if (argc >= 1) {
|
||||
ext = llfs_get_filename_ext(argv[0]);
|
||||
if (strcmp(ext, "gif") != 0) {
|
||||
|
||||
Reference in New Issue
Block a user