diff options
| author | 2018-07-06 13:35:18 +0530 | |
|---|---|---|
| committer | 2018-07-06 13:35:18 +0530 | |
| commit | 054465c00d5c691060bdce22476ffea2004c7fb3 (patch) | |
| tree | a7151fbbf4b1820a21f7f2d7e8bf6b72e6034e67 | |
| parent | ae74c69a3479fd76669973f4c077d8bca4da4b8e (diff) | |
| download | nnn-054465c00d5c691060bdce22476ffea2004c7fb3.tar.gz | |
Fix indentation
| -rw-r--r-- | nnn.c | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -307,8 +307,7 @@ static char * const utils[] = { #define STR_COPY_ID 4 #define STR_DATE_ID 5 -static const char messages[][16] = -{ +static const char messages[][16] = { "nftw failed", "HOME not set", "no traversal", @@ -360,17 +359,17 @@ crc8init() static uchar crc8fast(uchar const message[], size_t n) { - static uchar data, remainder; - static size_t byte; + static uchar data, remainder; + static size_t byte; - /* Divide the message by the polynomial, a byte at a time */ - for (remainder = byte = 0; byte < n; ++byte) { - data = message[byte] ^ (remainder >> (WIDTH - 8)); - remainder = crc8table[data] ^ (remainder << 8); - } + /* Divide the message by the polynomial, a byte at a time */ + for (remainder = byte = 0; byte < n; ++byte) { + data = message[byte] ^ (remainder >> (WIDTH - 8)); + remainder = crc8table[data] ^ (remainder << 8); + } - /* The final remainder is the CRC */ - return remainder; + /* The final remainder is the CRC */ + return remainder; } /* Messages show up at the bottom */ |