Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/udf/udf_cksum.c

    ra35b458 r5c702a8  
    7979{
    8080        uint16_t crc = 0;
    81 
     81       
    8282        while (len-- > 0) {
    8383                /*
     
    8888                crc = crc_table[(crc >> 8 ^ (*buf++ & 0xff)) & 0xff] ^ (crc << 8);
    8989        }
    90 
     90       
    9191        return crc;
    9292}
     
    9898{
    9999        uint8_t result = 0;
    100 
     100       
    101101        for (size_t i = 0; i < UDF_TAG_SIZE; i++) {
    102102                if (i == 4)
    103103                        continue;
    104 
     104               
    105105                result = (result + tag[i]) % 256;
    106106        }
    107 
     107       
    108108        return result;
    109109}
Note: See TracChangeset for help on using the changeset viewer.