"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/test_extractor.c" between
libextractor-1.8.tar.gz and libextractor-1.9.tar.gz

About: GNU libextractor is a library used to extract meta-data from files of arbitrary type.

test_extractor.c  (libextractor-1.8):test_extractor.c  (libextractor-1.9)
skipping to change at line 45 skipping to change at line 45
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
/** /**
* Signature of the extract method that each plugin * Signature of the extract method that each plugin
* must provide. * must provide.
* *
* @param ec extraction context provided to the plugin * @param ec extraction context provided to the plugin
*/ */
void _EXTRACTOR_EXTERN void
EXTRACTOR_test_extract_method (struct EXTRACTOR_ExtractContext *ec) EXTRACTOR_test_extract_method (struct EXTRACTOR_ExtractContext *ec)
{ {
void *dp; void *dp;
if ((NULL == ec->config) || (0 != strcmp (ec->config, "test"))) if ((NULL == ec->config) || (0 != strcmp (ec->config, "test")))
return; /* only run in test mode */ return; /* only run in test mode */
if (4 != ec->read (ec->cls, &dp, 4)) if (4 != ec->read (ec->cls, &dp, 4))
{ {
fprintf (stderr, "Reading at offset 0 failed\n"); fprintf (stderr, "Reading at offset 0 failed\n");
ABORT (); ABORT ();
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)