Changeset da0fef6 in mainline for uspace/app/bithenge/blob.c


Ignore:
Timestamp:
2012-06-23T18:24:21Z (13 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
03b2b2c
Parents:
d5070ef
Message:

Bithenge: port to Linux and allow choosing a data source

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bithenge/blob.c

    rd5070ef rda0fef6  
    3636
    3737#include <assert.h>
    38 #include <bool.h>
    3938#include <errno.h>
    40 #include <macros.h>
    41 #include <mem.h>
    4239#include <stdlib.h>
    4340#include "blob.h"
     41#include "os.h"
    4442#include "tree.h"
    4543
     
    215213        memory_blob_t *blob = memory_from_blob(base);
    216214        if (blob->needs_free)
    217                 free(blob->buffer);
     215                free((void *)blob->buffer);
    218216        free(blob);
    219217        return EOK;
     
    272270 * destroyed.
    273271 * @param len The length of the data.
    274  * @param needs_free Whether the buffer should be freed with free() when the
    275  * blob is destroyed.
     272 * @param needs_free If true, the buffer will be freed with free() if this
     273 * function fails or the blob is destroyed.
    276274 * @return EOK on success or an error code from errno.h. */
    277275int bithenge_new_blob_from_buffer(bithenge_node_t **out, const void *buffer,
Note: See TracChangeset for help on using the changeset viewer.