From 952199297e978122e9db917adde778ed3ea23059 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 1 Dec 2011 08:06:06 +0000 Subject: =?UTF-8?q?2011-12-01=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * shared/include/cpuIdent.c, shared/include/cpuIdent.h (get_ppc_cpu_type_name): Return const char*. --- c/src/lib/libcpu/powerpc/ChangeLog | 5 +++++ c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c | 2 +- c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'c') diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 9f78c14b3e..83aeae533e 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,8 @@ +2011-12-01 Ralf Corsépius + + * shared/include/cpuIdent.c, shared/include/cpuIdent.h + (get_ppc_cpu_type_name): Return const char*. + 2011-11-10 Sebastian Huber PR 1927/bsps: diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c index 08d3907b58..b344857360 100644 --- a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c +++ b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c @@ -27,7 +27,7 @@ ppc_cpu_id_t current_ppc_cpu = PPC_UNKNOWN; ppc_cpu_revision_t current_ppc_revision = 0xff; ppc_feature_t current_ppc_features; -char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu) +const char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu) { switch (cpu) { case PPC_405: return "PPC405"; diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h index 8088e295dd..bee0fd8687 100644 --- a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h +++ b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h @@ -91,7 +91,7 @@ extern ppc_cpu_id_t current_ppc_cpu; typedef unsigned short ppc_cpu_revision_t; extern ppc_cpu_id_t get_ppc_cpu_type (void); -extern char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu); +extern const char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu); extern ppc_cpu_revision_t get_ppc_cpu_revision (void); extern ppc_cpu_revision_t current_ppc_revision; -- cgit v1.2.3