mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Oops, can't use symbol OK here
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4432 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -298,7 +298,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
/* Remove the original nuttx.hex file */
|
||||
|
||||
if (remove(srcfile) != OK)
|
||||
if (remove(srcfile) != 0)
|
||||
{
|
||||
fprintf(stderr, "Failed to remove the old '%s'\n", srcfile);
|
||||
|
||||
@@ -306,7 +306,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
/* Rename the new nuttx.tmp file to nuttx.hex */
|
||||
|
||||
if (rename(destfile, srcfile) != OK)
|
||||
if (rename(destfile, srcfile) != 0)
|
||||
{
|
||||
fprintf(stderr, "Failed to rename '%s' to '%s'\n", destfile, srcfile);
|
||||
}
|
||||
|
||||
@@ -298,7 +298,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
/* Remove the original nuttx.hex file */
|
||||
|
||||
if (remove(srcfile) != OK)
|
||||
if (remove(srcfile) != 0)
|
||||
{
|
||||
fprintf(stderr, "Failed to remove the old '%s'\n", srcfile);
|
||||
|
||||
@@ -306,7 +306,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
/* Rename the new nuttx.tmp file to nuttx.hex */
|
||||
|
||||
if (rename(destfile, srcfile) != OK)
|
||||
if (rename(destfile, srcfile) != 0)
|
||||
{
|
||||
fprintf(stderr, "Failed to rename '%s' to '%s'\n", destfile, srcfile);
|
||||
}
|
||||
|
||||
@@ -298,7 +298,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
/* Remove the original nuttx.hex file */
|
||||
|
||||
if (remove(srcfile) != OK)
|
||||
if (remove(srcfile) != 0)
|
||||
{
|
||||
fprintf(stderr, "Failed to remove the old '%s'\n", srcfile);
|
||||
|
||||
@@ -306,7 +306,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
/* Rename the new nuttx.tmp file to nuttx.hex */
|
||||
|
||||
if (rename(destfile, srcfile) != OK)
|
||||
if (rename(destfile, srcfile) != 0)
|
||||
{
|
||||
fprintf(stderr, "Failed to rename '%s' to '%s'\n", destfile, srcfile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user