summaryrefslogtreecommitdiffstats
path: root/collection/collection_tools.c
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-09-14 12:52:23 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-10-05 10:32:06 -0400
commitc52f433eeb76edb9582b4b08586cd942578b7cab (patch)
tree361244b88138eb0ebe8867cafab4e67fb85728b1 /collection/collection_tools.c
parentc8afa2d4bd5ecd6cf5f4dc5d0cbedb9470ce848a (diff)
downloadding-libs-c52f433eeb76edb9582b4b08586cd942578b7cab.tar.gz
ding-libs-c52f433eeb76edb9582b4b08586cd942578b7cab.tar.xz
ding-libs-c52f433eeb76edb9582b4b08586cd942578b7cab.zip
COLLECTION Adding item comparison and sorting
Needed item comparison functions and realized that the easiest way to test them would be using sorting. Since there already been a ticket #73 to do that I added function to sort collection based on different properties of the item. COLLECTION Fixing issues with comparisons COLLECTION Adding do-while to macro
Diffstat (limited to 'collection/collection_tools.c')
-rw-r--r--collection/collection_tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collection/collection_tools.c b/collection/collection_tools.c
index c3f00ea..503a1a8 100644
--- a/collection/collection_tools.c
+++ b/collection/collection_tools.c
@@ -117,7 +117,7 @@ int col_debug_handle(const char *property,
(nest_level -1) * 4, "",
property,
length,
- (*((unsigned char *)(data)) == '\0') ? "flase" : "true",
+ (*((unsigned char *)(data)) == '\0') ? "false" : "true",
nest_level);
break;
case COL_TYPE_COLLECTION: