libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 54227d5a32430550e6d818106be337235e7d564d
parent 2b7e2151b700bff33494ebb86db3b2c381adfc42
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 18 Nov 2009 13:54:26 +0000

code cleanup

Diffstat:
Msrc/plugins/thumbnail/thumbnailextractor.c | 2+-
Msrc/test/keywordlisttest.c | 7++++---
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/plugins/thumbnail/thumbnailextractor.c b/src/plugins/thumbnail/thumbnailextractor.c @@ -36,7 +36,7 @@ /* using libgobject, needs init! */ -void __attribute__ ((constructor)) ole_gobject_init (void) +void __attribute__ ((constructor)) ole_gobject_init () { g_type_init (); if (! g_thread_supported () ) diff --git a/src/test/keywordlisttest.c b/src/test/keywordlisttest.c @@ -29,6 +29,7 @@ main (int argc, char *argv[]) }; EXTRACTOR_KeywordList *head; EXTRACTOR_KeywordList *pos; + const char *ret; head = NULL; i = 0; @@ -41,9 +42,9 @@ main (int argc, char *argv[]) i++; head = pos; } - if (0 != strcmp ("test", - EXTRACTOR_extractLastByString - (EXTRACTOR_getKeywordTypeAsString (0), head))) + ret = EXTRACTOR_extractLastByString (EXTRACTOR_getKeywordTypeAsString (0), head); + if ( (ret == NULL) || + (0 != strcmp ("test", ret) ) ) { printf ("Wrong keyword returned by extractLastByString\n"); return -1;