[oe-commits] Andrea Adami : kexec-tools_2.0.1: fix compiler warnings ( and literal comparison too...)
git version control
git at git.openembedded.org
Mon Sep 28 20:42:22 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 5d56edd5ad871cd83fbbd850c7d40ac85c6d1364
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5d56edd5ad871cd83fbbd850c7d40ac85c6d1364
Author: Andrea Adami <andrea.adami at gmail.com>
Date: Mon Sep 28 22:27:57 2009 +0200
kexec-tools_2.0.1: fix compiler warnings (and literal comparison too...)
---
recipes/kexec/files/fix-arm-arch-detection.patch | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/recipes/kexec/files/fix-arm-arch-detection.patch b/recipes/kexec/files/fix-arm-arch-detection.patch
index a367698..e581830 100644
--- a/recipes/kexec/files/fix-arm-arch-detection.patch
+++ b/recipes/kexec/files/fix-arm-arch-detection.patch
@@ -1,5 +1,5 @@
---- kexec-tools/kexec/phys_arch.c.old 2008-07-15 02:46:43.000000000 +0200
-+++ kexec-tools/kexec/phys_arch.c 2009-09-25 23:46:04.000000000 +0200
+--- kexec-tools/kexec/phys_arch.c.old 2009-09-25 23:46:04.000000000 +0200
++++ kexec-tools/kexec/phys_arch.c 2009-09-28 22:26:04.000000000 +0200
@@ -13,9 +13,16 @@
return -1;
}
@@ -8,7 +8,7 @@
- if (strcmp(utsname.machine, arches[i].machine) == 0)
+ for (i = 0; arches[i].machine; ++i) {
+
-+ if ((arches[i].machine == "arm") && (strncmp(utsname.machine, arches[i].machine, 3) == 0)) {
++ if ((strcmp(arches[i].machine, "arm") == 0) && (strncmp(utsname.machine, arches[i].machine, 3) == 0)) {
+ return arches[i].arch;
+ }
+
More information about the Openembedded-commits
mailing list