Skip to content

Commit

Permalink
fix some tifiles_fext_get usage warnings that became errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed Aug 20, 2024
1 parent 9ae6517 commit b5f7749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libticalcs/trunk/src/calc_nsp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ static int enumerate_folder(CalcHandle* handle, GNode** vars, const char * folde
// We might have to remove some extensions.
if (fe->type == NSP_TNS)
{
char * ext = tifiles_fext_get(varname);
char * ext = (char*)tifiles_fext_get((const char*)varname);
// Just a sanity check
if (ext)
{
Expand Down
4 changes: 1 addition & 3 deletions libticalcs/trunk/src/calc_xx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2096,9 +2096,7 @@ int TICALL ticalcs_calc_recv_cert2(CalcHandle* handle, const char* filename)
break;
}

gchar* e = tifiles_fext_get(basename);

memcpy(e, "crt", 3);
memcpy((void*)tifiles_fext_get(basename), "crt", 3);

content = tifiles_content_create_flash(handle->model);
ret = ticalcs_calc_recv_cert(handle, content);
Expand Down

0 comments on commit b5f7749

Please sign in to comment.