aboutsummaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorAshish Bhatia <ashishbhatia.ab@gmail.com>2011-04-08 18:55:02 -0700
committerAshish Bhatia <ashishbhatia.ab@gmail.com>2011-04-08 18:55:02 -0700
commit8344e6d1b6847f042cbd6d36d1907fc089bdeefb (patch)
treeeea43e3e8da3bcabdc23e18a7bdaa487f4322aca /hw
parentd6eb6be5f3d87d24aeb42083e08cf6e1dbaf4e96 (diff)
downloadexternal_qemu-8344e6d1b6847f042cbd6d36d1907fc089bdeefb.zip
external_qemu-8344e6d1b6847f042cbd6d36d1907fc089bdeefb.tar.gz
external_qemu-8344e6d1b6847f042cbd6d36d1907fc089bdeefb.tar.bz2
Converted a variable from char * to const char *.
Removes compiler warnings with some compilers. Change-Id: Idfb14557181e744d07bef6b5d0da734012d2ff42
Diffstat (limited to 'hw')
-rw-r--r--hw/goldfish_battery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/goldfish_battery.c b/hw/goldfish_battery.c
index c5eef9c..c4988d7 100644
--- a/hw/goldfish_battery.c
+++ b/hw/goldfish_battery.c
@@ -203,8 +203,8 @@ void goldfish_battery_set_prop(int ac, int property, int value)
void goldfish_battery_display(void (* callback)(void *data, const char* string), void *data)
{
- char buffer[100];
- char* value;
+ char buffer[100];
+ const char* value;
sprintf(buffer, "AC: %s\r\n", (battery_state->ac_online ? "online" : "offline"));
callback(data, buffer);