Oops, can't use symbol OK here
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4432 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
452d60b5dc
commit
319553ee15
@ -298,7 +298,7 @@ int main(int argc, char **argv, char **envp)
|
|||||||
|
|
||||||
/* Remove the original nuttx.hex file */
|
/* Remove the original nuttx.hex file */
|
||||||
|
|
||||||
if (remove(srcfile) != OK)
|
if (remove(srcfile) != 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Failed to remove the old '%s'\n", srcfile);
|
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 */
|
/* 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);
|
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 */
|
/* Remove the original nuttx.hex file */
|
||||||
|
|
||||||
if (remove(srcfile) != OK)
|
if (remove(srcfile) != 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Failed to remove the old '%s'\n", srcfile);
|
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 */
|
/* 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);
|
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 */
|
/* Remove the original nuttx.hex file */
|
||||||
|
|
||||||
if (remove(srcfile) != OK)
|
if (remove(srcfile) != 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Failed to remove the old '%s'\n", srcfile);
|
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 */
|
/* 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);
|
fprintf(stderr, "Failed to rename '%s' to '%s'\n", destfile, srcfile);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user