summaryrefslogtreecommitdiff
blob: e1bf89b87ec31dfe69c4820d2ec6c2e6f12b5f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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;
 		}
 	}