From 46b5e76947be832fbce77428474bbd9f0691df49 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 24 Jul 2001 01:39:53 +0000 Subject: Somehow this missed the commit. 2001-07-24 Not Zed * camel-operation.c (camel_operation_register, unregister): Added some warnings for bad cases. svn path=/trunk/; revision=11333 --- camel/camel-operation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camel') diff --git a/camel/camel-operation.c b/camel/camel-operation.c index dce3340b9a..708259ff32 100644 --- a/camel/camel-operation.c +++ b/camel/camel-operation.c @@ -295,7 +295,7 @@ void camel_operation_register(CamelOperation *cc) cc->id = id; g_hash_table_insert(operation_active, (void *)id, cc); } else { - g_warning("Re-registering thread %d for cancellation as thread %d", cc->id, id); + g_warning("Re-registering thread %lu for cancellation as thread %lu", cc->id, id); } d(printf("registering thread %ld for cancellation\n", id)); @@ -329,7 +329,7 @@ void camel_operation_unregister(CamelOperation *cc) if (cc) { if (cc->id != (~0)) { g_hash_table_remove(operation_active, (void *)cc->id); - cc->id == ~0; + cc->id = ~0; } else { g_warning("Unregistering an operation that was already unregistered"); } -- cgit v1.2.3