From db393a5b29f263514f9d084e50e18815fd410477 Mon Sep 17 00:00:00 2001 From: Dmitriy Paliy Date: Thu, 19 May 2011 15:57:44 +0300 Subject: [PATCH] obexd: Change append to prepend in pull_newmissedcalls The ordering is not important and prepend is more efficient than append. --- obexd/plugins/phonebook-tracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index e06682bb3..6d0de0e7b 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -1464,7 +1464,7 @@ static int pull_newmissedcalls(const char **reply, int num_fields, data->newmissedcalls++; else { GString *number = g_string_new(reply[1]); - data->numbers = g_slist_append(data->numbers, + data->numbers = g_slist_prepend(data->numbers, number); } } -- 2.47.3