aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);