Changeset 47a6708 in mainline


Ignore:
Timestamp:
2009-04-14T18:26: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:
732bb0c
Parents:
2bf4936
Message:

No need for strncmp() fs_name_to_handle() as vfs_info.name is always null-terminated.

File:
1 edited

Legend:

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

    r2bf4936 r47a6708  
    377377        for (cur = fs_head.next; cur != &fs_head; cur = cur->next) {
    378378                fs_info_t *fs = list_get_instance(cur, fs_info_t, fs_link);
    379                 if (strncmp(fs->vfs_info.name, name,
    380                     sizeof(fs->vfs_info.name)) == 0) {
     379                if (str_cmp(fs->vfs_info.name, name) == 0) {
    381380                        handle = fs->fs_handle;
    382381                        break;
Note: See TracChangeset for help on using the changeset viewer.