Changeset f6b6b40 in mainline


Ignore:
Timestamp:
2017-03-18T14:30:41Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c725619
Parents:
4f9ab1e
Message:

Get rid of custom _strrchr in favor of str_rchr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_lookup.c

    r4f9ab1e rf6b6b40  
    141141}
    142142
    143 static char *_strrchr(char *path, int c)
    144 {
    145         char *res = NULL;
    146         while (*path != 0) {
    147                 if (*path == c) {
    148                         res = path;
    149                 }
    150                 path++;
    151         }
    152         return res;
    153 }
    154 
    155143int vfs_link_internal(vfs_node_t *base, char *path, vfs_triplet_t *child)
    156144{
     
    175163        vfs_triplet_t *triplet;
    176164       
    177         char *slash = _strrchr(path, '/');
     165        char *slash = str_rchr(path, L'/');
    178166        if (slash && slash != path) {
    179167                if (slash[1] == 0) {
Note: See TracChangeset for help on using the changeset viewer.