9
0
Fork 0

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:
patacongo 2012-02-27 19:54:42 +00:00
parent 9a530cbaa0
commit 2de2ff6b97
3 changed files with 6 additions and 6 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}