fix warning of casting const to non const
This commit is contained in:
2023-12-23 15:34:38 +01:00
committed by Sander Speetjens
parent 1ec27e9ee3
commit d627da2999

View File

@@ -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) {