mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 18:10:21 +00:00
[errno code][-RT_ERROR] fix that use RT_ERROR without -
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
de963feef4
commit
0f461e870c
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user