diff options
author | Sander Vrijders <[email protected]> | 2016-02-23 17:12:39 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-02-23 17:12:39 +0100 |
commit | d6cce879f08d7f4ceb929430d8d197535741396b (patch) | |
tree | dcb00cd6882bccafc8c12af3a91a791e6071ca13 /src | |
parent | c538bb5245f53d634dd4b58ecf0694149ecb28c6 (diff) | |
parent | 8061cf8fb53866adc1238cae92a741c9346f618f (diff) | |
download | ouroboros-d6cce879f08d7f4ceb929430d8d197535741396b.tar.gz ouroboros-d6cce879f08d7f4ceb929430d8d197535741396b.zip |
Merge remote-tracking branch 'upstream/be' into be
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/du_buff.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/du_buff.c b/src/lib/du_buff.c index 84bf528c..e4b56b5b 100644 --- a/src/lib/du_buff.c +++ b/src/lib/du_buff.c @@ -116,11 +116,10 @@ struct buffer * buffer_create (size_t size) struct buffer * buffer_seek(const struct buffer * head, size_t pos) { struct list_head * ptr = NULL; - struct buffer * hit = NULL; size_t cur_buf_start = 0; size_t cur_buf_end = 0; - if (head = NULL) { + if (head == NULL) { LOG_DBGF("Bogus input, bugging out."); return NULL; } @@ -142,11 +141,10 @@ struct buffer * buffer_seek(const struct buffer * head, size_t pos) uint8_t * buffer_seek_pos(const struct buffer * head, size_t pos) { struct list_head * ptr = NULL; - struct buffer * hit = NULL; size_t cur_buf_start = 0; size_t cur_buf_end = 0; - if (head = NULL) { + if (head == NULL) { LOG_DBGF("Bogus input, bugging out."); return NULL; } @@ -273,7 +271,6 @@ int du_buff_init(du_buff_t * dub, dub->du_end = start + len; return buffer_copy_data(dub->buffer, start, data, len); - } uint8_t * du_buff_data_ptr_start(du_buff_t * dub) |