summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Roberto de Souza <zehortigoza@profusion.mobi>2013-01-04 00:02:15 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-04 00:02:15 +0000
commit0b73a337fa119916715ee4e928d80d4345bcf1ad (patch)
tree95fd625db25f5475fb9c3c18e4bb66bb41e8bb3c
parent8114fff045b1bd5095ee5afc2531325503c6b470 (diff)
ethumb: assert to EINA_SAFETY
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 82132
-rw-r--r--legacy/ethumb/src/lib/client/ethumb_client.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/legacy/ethumb/src/lib/client/ethumb_client.c b/legacy/ethumb/src/lib/client/ethumb_client.c
index ad7f083..77dbbd8 100644
--- a/legacy/ethumb/src/lib/client/ethumb_client.c
+++ b/legacy/ethumb/src/lib/client/ethumb_client.c
@@ -67,7 +67,6 @@
67 67
68#include <stdio.h> 68#include <stdio.h>
69#include <stdlib.h> 69#include <stdlib.h>
70#include <assert.h>
71#include <limits.h> 70#include <limits.h>
72#include <string.h> 71#include <string.h>
73#include <unistd.h> 72#include <unistd.h>
@@ -254,8 +253,8 @@ _ethumb_async_delete(void *data)
254{ 253{
255 Ethumb_Async_Exists *async = data; 254 Ethumb_Async_Exists *async = data;
256 255
257 assert(async->callbacks == NULL); 256 EINA_SAFETY_ON_FALSE_RETURN(async->callbacks == NULL);
258 assert(async->thread == NULL); 257 EINA_SAFETY_ON_FALSE_RETURN(async->thread == NULL);
259 258
260 ethumb_free(async->dup); 259 ethumb_free(async->dup);
261 eina_stringshare_del(async->path); 260 eina_stringshare_del(async->path);
@@ -2058,7 +2057,7 @@ _ethumb_client_thumb_finish(void *data,
2058{ 2057{
2059 Ethumb_Client_Async *async = data; 2058 Ethumb_Client_Async *async = data;
2060 2059
2061 assert(async->id == id); 2060 EINA_SAFETY_ON_FALSE_RETURN(async->id == id);
2062 2061
2063 if (success) 2062 if (success)
2064 { 2063 {
@@ -2118,7 +2117,7 @@ _ethumb_client_thumb_exists(void *data, Ethumb_Client *client, Ethumb_Exists *re
2118 if (request == NULL) 2117 if (request == NULL)
2119 return; 2118 return;
2120 2119
2121 assert(async->exists == request); 2120 EINA_SAFETY_ON_FALSE_RETURN(async->exists == request);
2122 2121
2123 async->exists = NULL; 2122 async->exists = NULL;
2124 pending = eina_list_remove(pending, async); 2123 pending = eina_list_remove(pending, async);