Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ee3f6f6 in mainline for uspace/srv/logger/initlvl.c


Ignore:
Timestamp:
2014-06-30T18:04:54Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
3daf1979
Parents:
ef1ddad
Message:

Removal of strtok() and strtok_r() in favour of str_tok().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/logger/initlvl.c

    ref1ddad ree3f6f6  
    4444{
    4545        char *tmp;
    46         char *key = strtok_r(setting, "=", &tmp);
    47         char *value = strtok_r(NULL, "=", &tmp);
     46        char *key = str_tok(setting, "=", &tmp);
     47        char *value = str_tok(tmp, "=", &tmp);
    4848        if (key == NULL)
    4949                return;
     
    7676{
    7777        char *tmp;
    78         char *single_setting = strtok_r(settings, " ", &tmp);
     78        char *single_setting = str_tok(settings, " ", &tmp);
    7979        while (single_setting != NULL) {
    8080                parse_single_level_setting(single_setting);
    81                 single_setting = strtok_r(NULL, " ", &tmp);
     81                single_setting = str_tok(tmp, " ", &tmp);
    8282        }
    8383}
Note: See TracChangeset for help on using the changeset viewer.