From 31678eefbd7ad65c137e51105d8bb2580d168b29 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 19 Jun 2013 15:38:11 +0200 Subject: [PATCH] ndef: Rename near_ndef_prepare_hs_message near_ndef_prepare_hs_message() does not prepare a generic handover select message but rather a reply to a handover request. Those 2 have to be differentiated in order to implement static handover where a handover select frame is sent without having first seen a handover request. --- src/ndef.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ndef.c b/src/ndef.c index dd99178..98f0bc8 100644 --- a/src/ndef.c +++ b/src/ndef.c @@ -1868,7 +1868,7 @@ fail: return NULL; } -static struct near_ndef_message *near_ndef_prepare_hs_message( +static struct near_ndef_message *near_ndef_prepare_hs_reply( GSList *remote_mimes, GSList *remote_cfgs) { @@ -2343,7 +2343,7 @@ static struct near_ndef_ho_payload *parse_ho_payload(enum record_type rec_type, } } else if (reply != NULL) { /* Prepare Hs, it depends upon Hr message carrier types */ - *reply = near_ndef_prepare_hs_message(mimes, c_datas); + *reply = near_ndef_prepare_hs_reply(mimes, c_datas); if (*reply == NULL) { DBG("error in preparing in HS record"); goto fail; -- 2.7.4