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

Changeset ce8f4f4 in mainline


Ignore:
Timestamp:
2011-04-30T06:19:25Z (9 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
master
Children:
cb052b4
Parents:
3dbe4ca2
Message:

Replace str_cmp to bcmp for directory name comparsion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r3dbe4ca2 rce8f4f4  
    723723                d = (fat_dentry_t *) b->data;
    724724                if ((fat_classify_dentry(d) == FAT_DENTRY_LAST) ||
    725                     (str_cmp((char *) d->name, FAT_NAME_DOT)) == 0) {
     725                    (bcmp(d->name, FAT_NAME_DOT, FAT_NAME_LEN)) == 0) {
    726726                        memset(d, 0, sizeof(fat_dentry_t));
    727727                        memcpy(d->name, FAT_NAME_DOT, FAT_NAME_LEN);
     
    733733                d++;
    734734                if ((fat_classify_dentry(d) == FAT_DENTRY_LAST) ||
    735                     (str_cmp((char *) d->name, FAT_NAME_DOT_DOT) == 0)) {
     735                    (bcmp(d->name, FAT_NAME_DOT_DOT, FAT_NAME_LEN) == 0)) {
    736736                        memset(d, 0, sizeof(fat_dentry_t));
    737737                        memcpy(d->name, FAT_NAME_DOT_DOT, FAT_NAME_LEN);
Note: See TracChangeset for help on using the changeset viewer.