Identation fixes, warn about unused nonce_gen return values

This commit is contained in:
Martin Willi
2012-07-16 14:53:37 +02:00
parent 6ac8d861d9
commit c3858662d2
+4 -2
View File
@@ -35,8 +35,9 @@ struct nonce_gen_t {
*
* @param size size of nonce in bytes
* @param buffer pointer where the generated nonce will be written
* @return TRUE if nonce allocation was succesful, FALSE otherwise
* @return TRUE if nonce allocation was succesful, FALSE otherwise
*/
__attribute__((warn_unused_result))
bool (*get_nonce) (nonce_gen_t *this, size_t size, u_int8_t *buffer);
/**
@@ -44,8 +45,9 @@ struct nonce_gen_t {
*
* @param size size of nonce in bytes
* @param chunk chunk which will hold the generated nonce
* @return TRUE if nonce allocation was succesful, FALSE otherwise
* @return TRUE if nonce allocation was succesful, FALSE otherwise
*/
__attribute__((warn_unused_result))
bool (*allocate_nonce) (nonce_gen_t *this, size_t size, chunk_t *chunk);
/**