summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-27 19:54:42 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-27 19:54:42 +0000
commite4968d3556b862b4bdf950f6d70516fce710dfe1 (patch)
tree58c6fe844d776e7e1c58148096985e537e93d8fc /nuttx
parent34abeda54d7093df62fc2808601c7d7e0bb2ab1c (diff)
downloadpx4-nuttx-e4968d3556b862b4bdf950f6d70516fce710dfe1.tar.gz
px4-nuttx-e4968d3556b862b4bdf950f6d70516fce710dfe1.tar.bz2
px4-nuttx-e4968d3556b862b4bdf950f6d70516fce710dfe1.zip
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
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/configs/pcblogic-pic32mx/tools/mkpichex.c4
-rw-r--r--nuttx/configs/pic32-starterkit/tools/mkpichex.c4
-rw-r--r--nuttx/configs/sure-pic32mx/tools/mkpichex.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/configs/pcblogic-pic32mx/tools/mkpichex.c b/nuttx/configs/pcblogic-pic32mx/tools/mkpichex.c
index c15a27564..3cd8c8187 100644
--- a/nuttx/configs/pcblogic-pic32mx/tools/mkpichex.c
+++ b/nuttx/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/nuttx/configs/pic32-starterkit/tools/mkpichex.c b/nuttx/configs/pic32-starterkit/tools/mkpichex.c
index 90d5efc54..ba7d082f9 100644
--- a/nuttx/configs/pic32-starterkit/tools/mkpichex.c
+++ b/nuttx/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/nuttx/configs/sure-pic32mx/tools/mkpichex.c b/nuttx/configs/sure-pic32mx/tools/mkpichex.c
index 299866c00..70de368bd 100644
--- a/nuttx/configs/sure-pic32mx/tools/mkpichex.c
+++ b/nuttx/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);
}