diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2008-08-31 09:44:45 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-08-31 09:44:45 +0000 |
| commit | b7219b7e16bc12e43aaf33555fed7157dddf706f (patch) | |
| tree | dfcc6a8a44af3e078667221a68aeb951fa5597ef | |
| parent | 9da68f9ed7cd866e28e6b41efc3661458b1d5409 (diff) | |
| download | rockbox-b7219b7e16bc12e43aaf33555fed7157dddf706f.zip rockbox-b7219b7e16bc12e43aaf33555fed7157dddf706f.tar.gz rockbox-b7219b7e16bc12e43aaf33555fed7157dddf706f.tar.bz2 rockbox-b7219b7e16bc12e43aaf33555fed7157dddf706f.tar.xz | |
Replaced TAB characters by spaces in sansapatcher
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18368 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | rbutil/sansapatcher/sansaio-posix.c | 2 | ||||
| -rw-r--r-- | rbutil/sansapatcher/sansaio-win32.c | 4 | ||||
| -rw-r--r-- | rbutil/sansapatcher/sansapatcher.c | 60 |
3 files changed, 33 insertions, 33 deletions
diff --git a/rbutil/sansapatcher/sansaio-posix.c b/rbutil/sansapatcher/sansaio-posix.c index 9c3ec04..4c28afa 100644 --- a/rbutil/sansapatcher/sansaio-posix.c +++ b/rbutil/sansapatcher/sansaio-posix.c @@ -86,7 +86,7 @@ int sansa_open(struct sansa_t* sansa, int silent) if (!silent) { fprintf(stderr,"[ERR] ioctl() call to get sector size failed, defaulting to %d\n" ,sansa->sector_size); - } + } } return 0; } diff --git a/rbutil/sansapatcher/sansaio-win32.c b/rbutil/sansapatcher/sansaio-win32.c index 30c378b..2b93d28 100644 --- a/rbutil/sansapatcher/sansaio-win32.c +++ b/rbutil/sansapatcher/sansaio-win32.c @@ -44,7 +44,7 @@ static int lock_volume(HANDLE hDisk) DWORD dummy; return DeviceIoControl(hDisk, FSCTL_LOCK_VOLUME, NULL, 0, NULL, 0, - &dummy, NULL); + &dummy, NULL); } static int unlock_volume(HANDLE hDisk) @@ -52,7 +52,7 @@ static int unlock_volume(HANDLE hDisk) DWORD dummy; return DeviceIoControl(hDisk, FSCTL_UNLOCK_VOLUME, NULL, 0, NULL, 0, - &dummy, NULL); + &dummy, NULL); } #ifndef RBUTIL diff --git a/rbutil/sansapatcher/sansapatcher.c b/rbutil/sansapatcher/sansapatcher.c index e2e9c88..8d31919 100644 --- a/rbutil/sansapatcher/sansapatcher.c +++ b/rbutil/sansapatcher/sansapatcher.c @@ -173,10 +173,10 @@ sansa_memmem (haystack, haystack_len, needle, needle_len) for (begin = (const char *) haystack; begin <= last_possible; ++begin) if (begin[0] == ((const char *) needle)[0] && - !memcmp ((const void *) &begin[1], - (const void *) ((const char *) needle + 1), - needle_len - 1)) - return (void *) begin; + !memcmp ((const void *) &begin[1], + (const void *) ((const char *) needle + 1), + needle_len - 1)) + return (void *) begin; return NULL; } @@ -197,15 +197,15 @@ sansa_memmem (haystack, haystack_len, needle, needle_len) */ /* crc_tab[] -- this crcTable is being build by chksum_crc32GenTab(). - * so make sure, you call it before using the other - * functions! + * so make sure, you call it before using the other + * functions! */ static unsigned int crc_tab[256]; /* chksum_crc() -- to a given block, this one calculates the - * crc32-checksum until the length is - * reached. the crc32-checksum will be - * the result. + * crc32-checksum until the length is + * reached. the crc32-checksum will be + * the result. */ static unsigned int chksum_crc32 (const unsigned char *block, unsigned int length) { @@ -221,32 +221,32 @@ static unsigned int chksum_crc32 (const unsigned char *block, unsigned int lengt } /* chksum_crc32gentab() -- to a global crc_tab[256], this one will - * calculate the crcTable for crc32-checksums. - * it is generated to the polynom [..] + * calculate the crcTable for crc32-checksums. + * it is generated to the polynom [..] */ static void chksum_crc32gentab (void) { - unsigned long crc, poly; - int i, j; + unsigned long crc, poly; + int i, j; - poly = 0xEDB88320L; - for (i = 0; i < 256; i++) - { - crc = i; - for (j = 8; j > 0; j--) - { - if (crc & 1) - { - crc = (crc >> 1) ^ poly; - } - else - { - crc >>= 1; - } - } - crc_tab[i] = crc; - } + poly = 0xEDB88320L; + for (i = 0; i < 256; i++) + { + crc = i; + for (j = 8; j > 0; j--) + { + if (crc & 1) + { + crc = (crc >> 1) ^ poly; + } + else + { + crc >>= 1; + } + } + crc_tab[i] = crc; + } } /* Known keys for Sansa E200 and C200 firmwares: */ |