Fix returned type.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-12-24 01:40:53 +01:00
parent 36b2924036
commit 026ce37c11
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -285,7 +285,7 @@ file_t *search_dynamic_file(uint16_t fid) {
int delete_dynamic_file(file_t *f) {
if (f == NULL)
return NULL;
return CCID_ERR_FILE_NOT_FOUND;
for (int i = 0; i < dynamic_files; i++) {
if (dynamic_file[i].fid == f->fid) {
for (int j = i+1; j < dynamic_files; j++)