aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2011-04-11 09:36:51 -0700
committerAndroid Code Review <code-review@android.com>2011-04-11 09:36:51 -0700
commit95ea5b25db2dc300db560f9af5edabd1da438de5 (patch)
treea5957f86229c59f5bdfb24fef9fec5ae978fe76c
parent878c37d6428ff0ea6141dfddc22d549b07b5dde3 (diff)
parent8344e6d1b6847f042cbd6d36d1907fc089bdeefb (diff)
downloadexternal_qemu-95ea5b25db2dc300db560f9af5edabd1da438de5.zip
external_qemu-95ea5b25db2dc300db560f9af5edabd1da438de5.tar.gz
external_qemu-95ea5b25db2dc300db560f9af5edabd1da438de5.tar.bz2
Merge "Converted a variable from char * to const char *. Removes compiler warnings with some compilers."
-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);