forked from Archive/PX4-Autopilot
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:
parent
6fe64a1886
commit
08d0c58e89
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue