diff --git a/crc32.c b/crc32.c index bae7384..a22fc5d 100644 --- a/crc32.c +++ b/crc32.c @@ -72,10 +72,9 @@ static const unsigned long crctab[256] = { 0xA2F33668, 0xBCB4666D, 0xB8757BDA, 0xB5365D03, 0xB1F740B4 }; -inline -unsigned long crc32( const void* buffer, - unsigned long length, - unsigned long crc) +unsigned long crc32(const void* buffer, + unsigned long length, + unsigned long crc) { const unsigned char* cp = (const unsigned char*)buffer; diff --git a/crc32.h b/crc32.h index 62b3433..cb9b96f 100644 --- a/crc32.h +++ b/crc32.h @@ -18,9 +18,8 @@ #ifndef CRC32_H #define CRC32_H -inline -unsigned long crc32( const void* const buffer, - unsigned long length, - unsigned long crc); +unsigned long crc32(const void* const buffer, + unsigned long length, + unsigned long crc); #endif diff --git a/tiotest.c b/tiotest.c index c23ceb4..bb73fcb 100644 --- a/tiotest.c +++ b/tiotest.c @@ -1392,7 +1392,7 @@ static int do_mmap_read_operation(void *loc, ThreadData *d) if(crc != d->bufferCrc) { - fprintf(stderr, "Thread(%lu) mmap consistency check failed at 0x%x\n", d->myNumber, (unsigned int)loc); + fprintf(stderr, "Thread(%lu) mmap consistency check failed at 0x%p\n", d->myNumber, loc); return -1; } }