Improve threadutil

Remove "dereference NULL return" errors and implicit conversions to
double or enum types.
(cherry picked from commit 77c73884b8)
This commit is contained in:
Fabrice
2012-03-09 22:28:02 +01:00
committed by Marcelo Roberto Jimenez
parent 783ebbc0ca
commit 2fc9200b85
5 changed files with 57 additions and 18 deletions

View File

@@ -2,6 +2,7 @@
*
* Copyright (c) 2000-2003 Intel Corporation
* All rights reserved.
* Copyright (c) 2012 France Telecom All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -102,7 +103,7 @@ int ListInit(LinkedList *list, cmp_routine cmp_func, free_function free_func)
list->tail.prev = &list->head;
list->tail.next = NULL;
return 0;
return retCode;
}
ListNode *ListAddHead(LinkedList *list, void *item)