freebsd-ports/devel/libgutenfetch/files/patch-src-libgutenfetch_detail.c
Pav Lucistnik f9335e6f4c Add libgutenfetch, which provides a clean and consistent interface for
application developers to write clients which list and fetch free electronic
texts from any number of Project Gutenberg servers throughout the world.

PR:		ports/69246
Submitted by:	Russell Francis <rf358197@ohio.edu>
2004-07-20 14:36:11 +00:00

17 lines
510 B
C

--- src/libgutenfetch_detail.c.orig Sat Jul 3 21:06:50 2004
+++ src/libgutenfetch_detail.c Tue Jul 20 15:19:40 2004
@@ -92,10 +92,12 @@
int
directory_data_compare(const void *a, const void *b, void *param)
{
+ directory_data_t *da;
+ directory_data_t *db;
assert( a != NULL );
assert( b != NULL );
- directory_data_t *da = (directory_data_t*)a;
- directory_data_t *db = (directory_data_t*)b;
+ da = (directory_data_t*)a;
+ db = (directory_data_t*)b;
return strcmp(da->directory, db->directory);
}