From 8ff130fbba1cc2f07d3d8dbd35f79d1c433ec411 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Mon, 23 Feb 2009 09:33:18 -0300 Subject: Cleanups --- hardinfo2/arch/linux/common/battery.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hardinfo2/arch/linux/common/battery.h b/hardinfo2/arch/linux/common/battery.h index 683cf01d..7dfa5423 100644 --- a/hardinfo2/arch/linux/common/battery.h +++ b/hardinfo2/arch/linux/common/battery.h @@ -18,13 +18,9 @@ #include -typedef struct _UPSFields UPSFields; - -struct _UPSFields { +const struct { gchar *key, *name; -}; - -const UPSFields ups_fields[] = { +} ups_fields[] = { { "UPS Status", NULL }, { "STATUS", "Status" }, { "TIMELEFT", "Time Left" }, -- cgit v1.2.3