Changeset 92fd52d7 in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2009-04-09T21:16:50Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7afb4a5
Parents:
a2c58f6
Message:

Nuke strcpy() and strcmp().

File:
1 edited

Legend:

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

    ra2c58f6 r92fd52d7  
    9292                /* We already have the root FS. */
    9393                rwlock_write_lock(&namespace_rwlock);
    94                 if ((strlen(mp) == 1) && (mp[0] == '/')) {
     94                if (str_cmp(mp, "/") == 0) {
    9595                        /* Trying to mount root FS over root FS */
    9696                        rwlock_write_unlock(&namespace_rwlock);
     
    125125        } else {
    126126                /* We still don't have the root file system mounted. */
    127                 if ((strlen(mp) == 1) && (mp[0] == '/')) {
     127                if (str_cmp(mp, "/") == 0) {
    128128                        vfs_lookup_res_t mr_res;
    129129                        vfs_node_t *mr_node;
Note: See TracChangeset for help on using the changeset viewer.