mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-03 06:50:59 +08: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:
1 parent
6fe64a1886
commit
08d0c58e89
3 files changed
+6
-6
No files matched your search
@@ -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