diff options
| author | 张衍 <[email protected]> | 2024-07-22 02:33:39 +0000 |
|---|---|---|
| committer | 张衍 <[email protected]> | 2024-07-22 02:33:39 +0000 |
| commit | 0e3c4bd26b34a54910db4da6b0a99bc470c65b08 (patch) | |
| tree | 2647ed4c4d6f182eb8f3176dc689a156d2920a38 /components | |
| parent | ca4645000a3d64c260bd6b15200bdcce5ae8b330 (diff) | |
[BSP/Phytium]适配最新裸机驱动
Diffstat (limited to 'components')
| -rw-r--r-- | components/utilities/ymodem/ry_sy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/utilities/ymodem/ry_sy.c b/components/utilities/ymodem/ry_sy.c index 89664f1ad9..4bbf816eb8 100644 --- a/components/utilities/ymodem/ry_sy.c +++ b/components/utilities/ymodem/ry_sy.c @@ -46,7 +46,6 @@ static enum rym_code _rym_recv_begin( rt_size_t len) { struct custom_ctx *cctx = (struct custom_ctx *)ctx; - struct stat file_buf; char insert_0 = '\0'; char *ret; rt_err_t err; @@ -64,7 +63,7 @@ static enum rym_code _rym_recv_begin( cctx->fd = open(cctx->fpath, O_CREAT | O_WRONLY | O_TRUNC, 0); if (cctx->fd < 0) { - rt_err_t err = rt_get_errno(); + err = rt_get_errno(); rt_kprintf("error creating file: %d\n", err); return RYM_CODE_CAN; } |
