From 9932a6316be777d47b89323c9b8ae132c3676830 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Thu, 16 May 2013 13:31:17 +0000 Subject: rfkill-glib: Don't use g_assert_not_reached in type_to_string New kernel versions can add new RFKILL types, we should now crash here, just say that we don't know what the switch is. --- diff --git a/lib/rfkill-glib.c b/lib/rfkill-glib.c index 039e80a..6f15702 100644 --- a/lib/rfkill-glib.c +++ b/lib/rfkill-glib.c @@ -80,7 +80,7 @@ type_to_string (unsigned int type) case RFKILL_TYPE_WWAN: return "WWAN"; default: - g_assert_not_reached (); + return "UNKNOWN"; } } -- cgit v0.9.1