Changeset da0fef6 in mainline for uspace/app/bithenge/blob.c
- Timestamp:
- 2012-06-23T18:24:21Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 03b2b2c
- Parents:
- d5070ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/blob.c
rd5070ef rda0fef6 36 36 37 37 #include <assert.h> 38 #include <bool.h>39 38 #include <errno.h> 40 #include <macros.h>41 #include <mem.h>42 39 #include <stdlib.h> 43 40 #include "blob.h" 41 #include "os.h" 44 42 #include "tree.h" 45 43 … … 215 213 memory_blob_t *blob = memory_from_blob(base); 216 214 if (blob->needs_free) 217 free( blob->buffer);215 free((void *)blob->buffer); 218 216 free(blob); 219 217 return EOK; … … 272 270 * destroyed. 273 271 * @param len The length of the data. 274 * @param needs_free Whether the buffer should be freed with free() when the275 * 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. 276 274 * @return EOK on success or an error code from errno.h. */ 277 275 int bithenge_new_blob_from_buffer(bithenge_node_t **out, const void *buffer,
Note:
See TracChangeset
for help on using the changeset viewer.