diff options
| author | Meco Man <[email protected]> | 2023-03-17 00:12:16 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-03-20 00:06:16 -0400 |
| commit | 0f461e870c481a24ce2690cca1949706bb80f9e7 (patch) | |
| tree | e77c8813658be76824bb848346cf9ef2340806f2 /components/utilities | |
| parent | de963feef4c5075626858c97413186fc2a309ffe (diff) | |
[errno code][-RT_ERROR] fix that use RT_ERROR without -
Diffstat (limited to 'components/utilities')
| -rw-r--r-- | components/utilities/rt-link/src/rtlink_dev.c | 2 | ||||
| -rw-r--r-- | components/utilities/zmodem/rz.c | 2 | ||||
| -rw-r--r-- | components/utilities/zmodem/sz.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/components/utilities/rt-link/src/rtlink_dev.c b/components/utilities/rt-link/src/rtlink_dev.c index 85d19abd4c..db94e93de3 100644 --- a/components/utilities/rt-link/src/rtlink_dev.c +++ b/components/utilities/rt-link/src/rtlink_dev.c @@ -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) diff --git a/components/utilities/zmodem/rz.c b/components/utilities/zmodem/rz.c index f4fa4bde6c..d6250db3c8 100644 --- a/components/utilities/zmodem/rz.c +++ b/components/utilities/zmodem/rz.c @@ -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 diff --git a/components/utilities/zmodem/sz.c b/components/utilities/zmodem/sz.c index bda5d939d4..504faaa39f 100644 --- a/components/utilities/zmodem/sz.c +++ b/components/utilities/zmodem/sz.c @@ -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) |
