[errno code][-RT_ERROR] fix that use RT_ERROR without -

This commit is contained in:
Meco Man
2023-03-17 00:12:16 -04:00
committed by Man, Jianting (Meco)
parent de963feef4
commit 0f461e870c
272 changed files with 639 additions and 644 deletions

View File

@@ -180,7 +180,7 @@ static rt_err_t rt_link_event_recv(struct rt_link_service *service)
{
return ret;
}
return RT_ERROR;
return -RT_ERROR;
}
static void send_cb(struct rt_link_service *service, void *buffer)

View File

@@ -187,7 +187,7 @@ static rt_err_t zrec_files(struct zfile *zf)
/* receive file */
static rt_err_t zrec_file(rt_uint8_t *rxbuf, struct zfile *zf)
{
rt_err_t res = - RT_ERROR;
rt_err_t res = -RT_ERROR;
rt_uint16_t err_cnt = 0;
do

View File

@@ -39,7 +39,7 @@ static void zsay_bibi(void);
void zs_start(char *path)
{
struct zfile *zf;
rt_err_t res = RT_ERROR;
rt_err_t res = -RT_ERROR;
char *p,*q;
zf = rt_malloc(sizeof(struct zfile));
if (zf == RT_NULL)