mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 05:29:43 +01:00
Problem: parameter naming style inconsistent
Solution: define and apply parameter naming style: lower_case_
This commit is contained in:
11
src/msg.cpp
11
src/msg.cpp
@@ -52,8 +52,11 @@ bool zmq::msg_t::check () const
|
||||
return u.base.type >= type_min && u.base.type <= type_max;
|
||||
}
|
||||
|
||||
int zmq::msg_t::init (
|
||||
void *data_, size_t size_, msg_free_fn *ffn_, void *hint, content_t *content_)
|
||||
int zmq::msg_t::init (void *data_,
|
||||
size_t size_,
|
||||
msg_free_fn *ffn_,
|
||||
void *hint_,
|
||||
content_t *content_)
|
||||
{
|
||||
if (size_ < max_vsm_size) {
|
||||
int const rc = init_size (size_);
|
||||
@@ -65,9 +68,9 @@ int zmq::msg_t::init (
|
||||
return -1;
|
||||
}
|
||||
} else if (content_) {
|
||||
return init_external_storage (content_, data_, size_, ffn_, hint);
|
||||
return init_external_storage (content_, data_, size_, ffn_, hint_);
|
||||
} else {
|
||||
return init_data (data_, size_, ffn_, hint);
|
||||
return init_data (data_, size_, ffn_, hint_);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user