mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-06 09:35:20 +00:00
Function doc return value clarity
This commit is contained in:
parent
9bb8efb9d9
commit
51c2adae02
@ -23,7 +23,7 @@ unsigned char *kernel_text_hash(void) {
|
||||
* @param data - Beginning memory address to perform hash
|
||||
* @param len - size in bytes of the address range to hash
|
||||
*
|
||||
* @return allocated buffer containing the hash string.
|
||||
* @return allocated buffer containing the hash string; or NULL upon error.
|
||||
*/
|
||||
unsigned char *hash_data(const void *data, size_t len) {
|
||||
struct scatterlist sg;
|
||||
@ -72,7 +72,7 @@ unsigned char *hash_data(const void *data, size_t len) {
|
||||
* @param attr - attribute of said kernel object
|
||||
* @param buf - buffer that will be allocated and filled with the hash
|
||||
*
|
||||
* @return size in bytes of the hash string.
|
||||
* @return size in bytes of the hash string; or -1 upon error.
|
||||
*/
|
||||
ssize_t text_segment_hash_show(struct kobject *obj,
|
||||
struct attribute *attr,
|
||||
|
Loading…
Reference in New Issue
Block a user