Changeset 1b20da0 in mainline for uspace/srv/fs/fat/fat_directory.c


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

File:
1 edited

Legend:

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

    rdf6ded8 r1b20da0  
    2929/** @addtogroup fs
    3030 * @{
    31  */ 
     31 */
    3232
    3333/**
     
    4949{
    5050        di->b = NULL;
    51         di->nodep = nodep;     
     51        di->nodep = nodep;
    5252        if (di->nodep->type != FAT_DIRECTORY)
    5353                return EINVAL;
     
    183183                                /* We found long entry */
    184184                                long_entry_count--;
    185                                 if ((FAT_LFN_ORDER(d) == long_entry_count) && 
     185                                if ((FAT_LFN_ORDER(d) == long_entry_count) &&
    186186                                    (checksum == FAT_LFN_CHKSUM(d))) {
    187187                                        /* Right order! */
     
    201201                                        long_entry = true;
    202202                                        long_entry_count = FAT_LFN_COUNT(d);
    203                                         lfn_size = (FAT_LFN_ENTRY_SIZE * 
     203                                        lfn_size = (FAT_LFN_ENTRY_SIZE *
    204204                                            (FAT_LFN_COUNT(d) - 1)) +
    205205                                            fat_lfn_size(d);
     
    212212                        break;
    213213                case FAT_DENTRY_VALID:
    214                         if (long_entry && 
     214                        if (long_entry &&
    215215                            (checksum == fat_dentry_chksum(d->name))) {
    216216                                wname[lfn_size] = '\0';
     
    253253        while (!flag && fat_directory_prev(di) == EOK) {
    254254                if (fat_directory_get(di, &d) == EOK &&
    255                     fat_classify_dentry(d) == FAT_DENTRY_LFN && 
     255                    fat_classify_dentry(d) == FAT_DENTRY_LFN &&
    256256                    checksum == FAT_LFN_CHKSUM(d)) {
    257257                        if (FAT_IS_LFN(d))
     
    479479                                break;
    480480                        }
    481                 } while (fat_directory_next(di) == EOK);       
     481                } while (fat_directory_next(di) == EOK);
    482482        } while (fat_directory_expand(di) == EOK);
    483483
     
    564564/**
    565565 * @}
    566  */ 
     566 */
Note: See TracChangeset for help on using the changeset viewer.