Skip to content

Commit

Permalink
fix: void functions returning value
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed May 15, 2024
1 parent dc9eee5 commit b2947dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/deprecated/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ uint8_t zp_random_u8(void) { return z_random_u8(); };
uint16_t zp_random_u16(void) { return z_random_u16(); };
uint32_t zp_random_u32(void) { return z_random_u32(); };
uint64_t zp_random_u64(void) { return z_random_u64(); };
void zp_random_fill(void *buf, size_t len) { return z_random_fill(buf, len); };
void zp_random_fill(void *buf, size_t len) { z_random_fill(buf, len); };

void *zp_malloc(size_t size) { return z_malloc(size); };
void *zp_realloc(void *ptr, size_t size) { return z_realloc(ptr, size); };
void zp_free(void *ptr) { return z_free(ptr); };
void zp_free(void *ptr) { z_free(ptr); };

#if Z_FEATURE_MULTI_THREAD == 1

int8_t zp_task_init(zp_task_t *task, zp_task_attr_t *attr, void *(*fun)(void *), void *arg) {
return z_task_init(task, attr, fun, arg);
};
int8_t zp_task_join(zp_task_t *task) { return z_task_join(task); };
void zp_task_free(zp_task_t **task) { return z_task_free(task); };
void zp_task_free(zp_task_t **task) { z_task_free(task); };

int8_t zp_mutex_init(zp_mutex_t *m) { return z_mutex_init(m); };
int8_t zp_mutex_free(zp_mutex_t *m) { return z_mutex_free(m); };
Expand Down

0 comments on commit b2947dd

Please sign in to comment.