mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 09:38:24 +00:00
Merge pull request #4341 from mysterywolf/unlink
[libc][iar][gcc] 优化remove函数
This commit is contained in:
@@ -197,12 +197,9 @@ int
|
||||
_unlink_r(struct _reent *ptr, const char *file)
|
||||
{
|
||||
#ifndef RT_USING_DFS
|
||||
return 0;
|
||||
return -1;
|
||||
#else
|
||||
int rc;
|
||||
|
||||
rc = unlink(file);
|
||||
return rc;
|
||||
return unlink(file);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user