From 207c636bb1778eaf6d161a5987885c59621a20f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Sowa?= Date: Sun, 8 Dec 2024 17:12:01 +0100 Subject: [PATCH] Replace z_result returns with _Z_RES and _Z_ERR --- src/system/freertos_plus_tcp/system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/freertos_plus_tcp/system.c b/src/system/freertos_plus_tcp/system.c index d079c34a5..085ab85dc 100644 --- a/src/system/freertos_plus_tcp/system.c +++ b/src/system/freertos_plus_tcp/system.c @@ -107,7 +107,7 @@ z_result_t _z_task_init(_z_task_t *task, z_task_attr_t *attr, void *(*fun)(void } else { #endif /* SUPPORT_STATIC_ALLOCATION */ if (xTaskCreate(z_task_wrapper, attr->name, attr->stack_depth, task, attr->priority, &task->handle) != pdPASS) { - return -1; + return _Z_ERR_GENERIC; } #if (configSUPPORT_STATIC_ALLOCATION == 1) } @@ -251,5 +251,5 @@ z_result_t _z_get_time_since_epoch(_z_time_since_epoch *t) { gettimeofday(&now, NULL); t->secs = (uint32_t)now.tv_sec; t->nanos = (uint32_t)now.tv_usec * 1000; - return 0; + return _Z_RES_OK; }