diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-02-23 17:11:19 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-02-23 17:11:19 +0100 |
commit | 8061cf8fb53866adc1238cae92a741c9346f618f (patch) | |
tree | 8f1dabb4b3dd3650e763e4b9c5230ac99e8f8e6c | |
parent | f5cfe09d7b148ca49d17bfc5b134651a6edf2ecc (diff) | |
parent | 41160ed4bc79c5f58049f5112eb176a906fe7db1 (diff) | |
download | ouroboros-8061cf8fb53866adc1238cae92a741c9346f618f.tar.gz ouroboros-8061cf8fb53866adc1238cae92a741c9346f618f.zip |
Merged in dstaesse/ouroboros/be (pull request #6)
lib: fixed build errors in du_buff
-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) |