Add a return value to hasher_t.reset()

This commit is contained in:
Martin Willi
2012-07-16 14:55:06 +02:00
parent 87dd205b61
commit e3b2e900e6
12 changed files with 91 additions and 68 deletions
+4 -1
View File
@@ -108,8 +108,11 @@ struct hasher_t {
/**
* Resets the hasher's state.
*
* @return TRUE if hasher reset successfully
*/
void (*reset) (hasher_t *this);
__attribute__((warn_unused_result))
bool (*reset) (hasher_t *this);
/**
* Destroys a hasher object.