Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5722afa3 authored by Yi Kong's avatar Yi Kong
Browse files

Replace strtok with strtok_r

strtok is deprecated.

frameworks/av/media/libmediahelper/include/media/TypeConverter.h:172:29: warning: 'strtok' is deprecated: strtok() is not thread-safe; use strtok_r() instead [-Wdeprecated-declarations]
  172 |     for (const char *cstr = strtok(literal, del); cstr != NULL; cstr = strtok(NULL, del)) {
      |

Test: presubmit
Flag: EXEMPT, code cleanup
Change-Id: I56a29fbdd9325160f7a13375013e663d01dc9c49
parent 3fc9ec18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment