Changeset 1433ecda in mainline for uspace/srv/fs/fat


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/srv/fs/fat
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat.h

    r47b2d7e3 r1433ecda  
    105105                        /** Boot sector signature. */
    106106                        uint16_t        signature;
    107                 } __attribute__ ((packed));
     107                } __attribute__((packed));
    108108                struct {
    109109                        /* FAT32 only */
     
    136136                        /** Signature. */
    137137                        uint16_t        signature;
    138                 } __attribute__ ((packed)) fat32;
     138                } __attribute__((packed)) fat32;
    139139        };
    140 } __attribute__ ((packed)) fat_bs_t;
     140} __attribute__((packed)) fat_bs_t;
    141141
    142142#define FAT32_FSINFO_SIG1       "RRaA"
     
    152152        uint8_t res2[12];
    153153        uint8_t sig3[4];
    154 } __attribute__ ((packed)) fat32_fsinfo_t;
     154} __attribute__((packed)) fat32_fsinfo_t;
    155155
    156156typedef enum {
  • uspace/srv/fs/fat/fat_dentry.c

    r47b2d7e3 r1433ecda  
    382382{
    383383        wchar_t ch;
    384         size_t offset=0;
     384        size_t offset = 0;
    385385        bool result = true;
    386386
  • uspace/srv/fs/fat/fat_dentry.h

    r47b2d7e3 r1433ecda  
    117117                        uint16_t        eaidx;          /* FAT12/FAT16 */
    118118                        uint16_t        firstc_hi;      /* FAT32 */
    119                 } __attribute__ ((packed));
     119                } __attribute__((packed));
    120120                uint16_t        mtime;
    121121                uint16_t        mdate;
     
    123123                        uint16_t        firstc;         /* FAT12/FAT16 */
    124124                        uint16_t        firstc_lo;      /* FAT32 */
    125                 } __attribute__ ((packed));
     125                } __attribute__((packed));
    126126                uint32_t        size;
    127         } __attribute__ ((packed));
     127        } __attribute__((packed));
    128128        struct {
    129129                uint8_t         order;
     
    135135                uint16_t        firstc_lo; /* MUST be 0 */
    136136                uint16_t        part3[FAT_LFN_PART3_SIZE];
    137         } __attribute__ ((packed)) lfn;
    138 } __attribute__ ((packed)) fat_dentry_t;
     137        } __attribute__((packed)) lfn;
     138} __attribute__((packed)) fat_dentry_t;
    139139
    140140extern int fat_dentry_namecmp(char *, const char *);
  • uspace/srv/fs/fat/fat_directory.c

    r47b2d7e3 r1433ecda  
    383383                /* Copy number */
    384384                size_t offset;
    385                 if (str_size(name)+str_size(number) + 1 > FAT_NAME_LEN)
     385                if (str_size(name) + str_size(number) + 1 > FAT_NAME_LEN)
    386386                        offset = FAT_NAME_LEN - str_size(number) - 1;
    387387                else
Note: See TracChangeset for help on using the changeset viewer.