Make ss_passwd_register slightly more efficient
authorDenis Kenzior <denkenz@gmail.com>
Wed, 12 Aug 2009 21:57:01 +0000 (16:57 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 13 Aug 2009 15:08:32 +0000 (10:08 -0500)
src/ussd.c

index 0f1aa27..27c389c 100644 (file)
@@ -229,7 +229,7 @@ gboolean ss_passwd_register(struct ofono_modem *modem, const char *str,
        if (!entry)
                return FALSE;
 
-       modem->ss_passwd_list = g_slist_append(modem->ss_passwd_list, entry);
+       modem->ss_passwd_list = g_slist_prepend(modem->ss_passwd_list, entry);
 
        return TRUE;
 }