diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-06-30 01:31:54 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-06-30 01:31:54 +0000 |
commit | 1f101bcb3952ce79440d0236313f3ed11cba2aaa (patch) | |
tree | 43d42b9665f52396b847c169ff4c312a8ecf9a15 /hardinfo2/arch/linux/common/inputdevices.h | |
parent | 2d366bc8caf8083b66deaa09435f2dc93ffc9a69 (diff) |
Cleanups, fix crashes.
Diffstat (limited to 'hardinfo2/arch/linux/common/inputdevices.h')
-rw-r--r-- | hardinfo2/arch/linux/common/inputdevices.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hardinfo2/arch/linux/common/inputdevices.h b/hardinfo2/arch/linux/common/inputdevices.h index 1a5baff8..a7102335 100644 --- a/hardinfo2/arch/linux/common/inputdevices.h +++ b/hardinfo2/arch/linux/common/inputdevices.h @@ -21,11 +21,7 @@ static gchar *input_icons = NULL; static gboolean remove_input_devices(gpointer key, gpointer value, gpointer data) { - if (!strncmp((gchar *) key, "INP", 3)) { - return TRUE; - } - - return FALSE; + return g_str_has_prefix(key, "INP"); } static struct { |