diff options
Diffstat (limited to 'src/main/test_extractor.c')
-rw-r--r-- | src/main/test_extractor.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/test_extractor.c b/src/main/test_extractor.c index 52b1a59..8c15fca 100644 --- a/src/main/test_extractor.c +++ b/src/main/test_extractor.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <unistd.h> | 36 | #include <unistd.h> |
37 | #include <stdlib.h> | 37 | #include <stdlib.h> |
38 | 38 | ||
39 | 39 | ||
40 | 40 | ||
41 | /** | 41 | /** |
42 | * Signature of the extract method that each plugin | 42 | * Signature of the extract method that each plugin |
@@ -44,7 +44,7 @@ | |||
44 | * | 44 | * |
45 | * @param ec extraction context provided to the plugin | 45 | * @param ec extraction context provided to the plugin |
46 | */ | 46 | */ |
47 | void | 47 | _EXTRACTOR_EXTERN void |
48 | EXTRACTOR_test_extract_method (struct EXTRACTOR_ExtractContext *ec) | 48 | EXTRACTOR_test_extract_method (struct EXTRACTOR_ExtractContext *ec) |
49 | { | 49 | { |
50 | void *dp; | 50 | void *dp; |
@@ -54,19 +54,19 @@ EXTRACTOR_test_extract_method (struct EXTRACTOR_ExtractContext *ec) | |||
54 | if (4 != ec->read (ec->cls, &dp, 4)) | 54 | if (4 != ec->read (ec->cls, &dp, 4)) |
55 | { | 55 | { |
56 | fprintf (stderr, "Reading at offset 0 failed\n"); | 56 | fprintf (stderr, "Reading at offset 0 failed\n"); |
57 | ABORT (); | 57 | ABORT (); |
58 | } | 58 | } |
59 | if (0 != strncmp ("test", dp, 4)) | 59 | if (0 != strncmp ("test", dp, 4)) |
60 | { | 60 | { |
61 | fprintf (stderr, "Unexpected data at offset 0\n"); | 61 | fprintf (stderr, "Unexpected data at offset 0\n"); |
62 | ABORT (); | 62 | ABORT (); |
63 | } | 63 | } |
64 | if ( (1024 * 150 != ec->get_size (ec->cls)) && | 64 | if ( (1024 * 150 != ec->get_size (ec->cls)) && |
65 | (UINT64_MAX != ec->get_size (ec->cls)) ) | 65 | (UINT64_MAX != ec->get_size (ec->cls)) ) |
66 | { | 66 | { |
67 | fprintf (stderr, "Unexpected file size returned (expected 150k)\n"); | 67 | fprintf (stderr, "Unexpected file size returned (expected 150k)\n"); |
68 | ABORT (); | 68 | ABORT (); |
69 | } | 69 | } |
70 | if (1024 * 100 + 4 != ec->seek (ec->cls, 1024 * 100 + 4, SEEK_SET)) | 70 | if (1024 * 100 + 4 != ec->seek (ec->cls, 1024 * 100 + 4, SEEK_SET)) |
71 | { | 71 | { |
72 | fprintf (stderr, "Failure to seek (SEEK_SET)\n"); | 72 | fprintf (stderr, "Failure to seek (SEEK_SET)\n"); |