From 7bb4a795a3d84fa3f39b22cf5836588233048f74 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 27 Feb 2012 19:54:42 +0000 Subject: [PATCH] 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 --- configs/pcblogic-pic32mx/tools/mkpichex.c | 4 ++-- configs/pic32-starterkit/tools/mkpichex.c | 4 ++-- configs/sure-pic32mx/tools/mkpichex.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configs/pcblogic-pic32mx/tools/mkpichex.c b/configs/pcblogic-pic32mx/tools/mkpichex.c index c15a2756436..3cd8c818721 100644 --- a/configs/pcblogic-pic32mx/tools/mkpichex.c +++ b/configs/pcblogic-pic32mx/tools/mkpichex.c @@ -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); } diff --git a/configs/pic32-starterkit/tools/mkpichex.c b/configs/pic32-starterkit/tools/mkpichex.c index 90d5efc549f..ba7d082f9dd 100644 --- a/configs/pic32-starterkit/tools/mkpichex.c +++ b/configs/pic32-starterkit/tools/mkpichex.c @@ -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); } diff --git a/configs/sure-pic32mx/tools/mkpichex.c b/configs/sure-pic32mx/tools/mkpichex.c index 299866c0017..70de368bd10 100644 --- a/configs/sure-pic32mx/tools/mkpichex.c +++ b/configs/sure-pic32mx/tools/mkpichex.c @@ -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); }