Changes in uspace/srv/fs/fat/fat_ops.c [f73b291:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
rf73b291 rfeeac0d 149 149 static int fat_node_fini_by_service_id(service_id_t service_id) 150 150 { 151 fat_node_t *nodep;152 151 int rc; 153 152 … … 160 159 restart: 161 160 fibril_mutex_lock(&ffn_mutex); 162 list_foreach(ffn_list, lnk) { 163 nodep = list_get_instance(lnk, fat_node_t, ffn_link); 161 list_foreach(ffn_list, ffn_link, fat_node_t, nodep) { 164 162 if (!fibril_mutex_trylock(&nodep->lock)) { 165 163 fibril_mutex_unlock(&ffn_mutex); … … 651 649 d = (fat_dentry_t *) b->data; 652 650 if ((fat_classify_dentry(d) == FAT_DENTRY_LAST) || 653 ( bcmp(d->name, FAT_NAME_DOT, FAT_NAME_LEN)) == 0) {651 (memcmp(d->name, FAT_NAME_DOT, FAT_NAME_LEN)) == 0) { 654 652 memset(d, 0, sizeof(fat_dentry_t)); 655 653 memcpy(d->name, FAT_NAME_DOT, FAT_NAME_LEN); … … 661 659 d++; 662 660 if ((fat_classify_dentry(d) == FAT_DENTRY_LAST) || 663 ( bcmp(d->name, FAT_NAME_DOT_DOT, FAT_NAME_LEN) == 0)) {661 (memcmp(d->name, FAT_NAME_DOT_DOT, FAT_NAME_LEN) == 0)) { 664 662 memset(d, 0, sizeof(fat_dentry_t)); 665 663 memcpy(d->name, FAT_NAME_DOT_DOT, FAT_NAME_LEN); … … 1042 1040 info = (fat32_fsinfo_t *) b->data; 1043 1041 1044 if ( bcmp(info->sig1, FAT32_FSINFO_SIG1, sizeof(info->sig1))||1045 bcmp(info->sig2, FAT32_FSINFO_SIG2, sizeof(info->sig2))||1046 bcmp(info->sig3, FAT32_FSINFO_SIG3, sizeof(info->sig3))) {1042 if (memcmp(info->sig1, FAT32_FSINFO_SIG1, sizeof(info->sig1)) != 0 || 1043 memcmp(info->sig2, FAT32_FSINFO_SIG2, sizeof(info->sig2)) != 0 || 1044 memcmp(info->sig3, FAT32_FSINFO_SIG3, sizeof(info->sig3)) != 0) { 1047 1045 (void) block_put(b); 1048 1046 return EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.