mesh: avoid 'template' as argument name

This commit is contained in:
Matthias Ringwald 2019-08-23 22:10:25 +02:00
parent 208c178460
commit 39317c7757
2 changed files with 10 additions and 10 deletions

View File

@ -669,15 +669,15 @@ void mesh_access_network_add_model_identifier(mesh_network_pdu_t * pdu, uint32_t
// access message template
mesh_network_pdu_t * mesh_access_setup_unsegmented_message(const mesh_access_message_t *template, ...){
mesh_network_pdu_t * network_pdu = mesh_access_network_init(template->opcode);
mesh_network_pdu_t * mesh_access_setup_unsegmented_message(const mesh_access_message_t *message_template, ...){
mesh_network_pdu_t * network_pdu = mesh_access_network_init(message_template->opcode);
if (!network_pdu) return NULL;
va_list argptr;
va_start(argptr, template);
va_start(argptr, message_template);
// add params
const char * format = template->format;
const char * format = message_template->format;
uint16_t word;
uint32_t longword;
while (*format){
@ -714,15 +714,15 @@ mesh_network_pdu_t * mesh_access_setup_unsegmented_message(const mesh_access_mes
return network_pdu;
}
mesh_transport_pdu_t * mesh_access_setup_segmented_message(const mesh_access_message_t *template, ...){
mesh_transport_pdu_t * transport_pdu = mesh_access_transport_init(template->opcode);
mesh_transport_pdu_t * mesh_access_setup_segmented_message(const mesh_access_message_t *message_template, ...){
mesh_transport_pdu_t * transport_pdu = mesh_access_transport_init(message_template->opcode);
if (!transport_pdu) return NULL;
va_list argptr;
va_start(argptr, template);
va_start(argptr, message_template);
// add params
const char * format = template->format;
const char * format = message_template->format;
uint16_t word;
uint32_t longword;
while (*format){

View File

@ -254,8 +254,8 @@ void mesh_access_network_add_uint32(mesh_network_pdu_t * pdu, uint16_t value);
void mesh_access_network_add_model_identifier(mesh_network_pdu_t * pdu, uint32_t model_identifier);
// message builder using template
mesh_network_pdu_t * mesh_access_setup_unsegmented_message(const mesh_access_message_t *template, ...);
mesh_transport_pdu_t * mesh_access_setup_segmented_message(const mesh_access_message_t *template, ...);
mesh_network_pdu_t * mesh_access_setup_unsegmented_message(const mesh_access_message_t *message_template, ...);
mesh_transport_pdu_t * mesh_access_setup_segmented_message(const mesh_access_message_t *message_template, ...);
#ifdef __cplusplus
} /* end of extern "C" */