diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-02-23 09:33:18 -0300 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-02-23 09:33:18 -0300 |
commit | 8ff130fbba1cc2f07d3d8dbd35f79d1c433ec411 (patch) | |
tree | 0b014bc804856924d30043f95a59d125f80829e6 | |
parent | 22fe41b021367d807607738b3eee785d3ba78608 (diff) |
Cleanups
-rw-r--r-- | hardinfo2/arch/linux/common/battery.h | 8 |
1 files 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 <time.h> -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" }, |