diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-05 14:57:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-05 14:57:43 +0000 |
commit | 3e91a8a290fddb2b7755ac32fd1b8b318fc013a5 (patch) | |
tree | e78924ffa371b0a2941e6c8c2b50370a42646e8f /nuttx/tools/cmpconfig.c | |
parent | 470c2e71df47a3ad527afe4b20dbe8988c3f8575 (diff) | |
download | px4-firmware-3e91a8a290fddb2b7755ac32fd1b8b318fc013a5.tar.gz px4-firmware-3e91a8a290fddb2b7755ac32fd1b8b318fc013a5.tar.bz2 px4-firmware-3e91a8a290fddb2b7755ac32fd1b8b318fc013a5.zip |
Clean up a few tools/ build issues
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5480 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/tools/cmpconfig.c')
-rw-r--r-- | nuttx/tools/cmpconfig.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/tools/cmpconfig.c b/nuttx/tools/cmpconfig.c index 08b7dab3f..a5a539401 100644 --- a/nuttx/tools/cmpconfig.c +++ b/nuttx/tools/cmpconfig.c @@ -67,6 +67,7 @@ static void compare_variables(struct variable_s *list1, struct variable_s *list2 { char *varval1; char *varval2; + int result; while (list1 || list2) { @@ -102,7 +103,7 @@ static void compare_variables(struct variable_s *list1, struct variable_s *list2 } else { - int result = strcmp(list1->var, list2->var); + result = strcmp(list1->var, list2->var); if (result < 0) { printf("file1: %s=%s\n", list1->var, varval1); @@ -115,9 +116,9 @@ static void compare_variables(struct variable_s *list1, struct variable_s *list2 printf("file2: %s=%s\n\n", list2->var, varval2); list2 = list2->flink; } - else + else /* if (result == 0) */ { - int result = strcmp(varval1, varval2); + result = strcmp(varval1, varval2); if (result != 0) { printf("file1: %s=%s\n", list1->var, varval1); |