Problem: parameter naming style inconsistent

Solution: define and apply parameter naming style: lower_case_
This commit is contained in:
Simon Giesecke
2018-05-24 17:58:30 +02:00
parent 79d5ac3dee
commit c581f43c97
91 changed files with 758 additions and 733 deletions

View File

@@ -249,18 +249,18 @@ zmq::options_t::options_t () :
#endif
}
int zmq::options_t::set_curve_key (uint8_t *destination,
int zmq::options_t::set_curve_key (uint8_t *destination_,
const void *optval_,
size_t optvallen_)
{
switch (optvallen_) {
case CURVE_KEYSIZE:
memcpy (destination, optval_, optvallen_);
memcpy (destination_, optval_, optvallen_);
mechanism = ZMQ_CURVE;
return 0;
case CURVE_KEYSIZE_Z85 + 1:
if (zmq_z85_decode (destination, (char *) optval_)) {
if (zmq_z85_decode (destination_, (char *) optval_)) {
mechanism = ZMQ_CURVE;
return 0;
}
@@ -270,7 +270,7 @@ int zmq::options_t::set_curve_key (uint8_t *destination,
char z85_key[CURVE_KEYSIZE_Z85 + 1];
memcpy (z85_key, (char *) optval_, optvallen_);
z85_key[CURVE_KEYSIZE_Z85] = 0;
if (zmq_z85_decode (destination, z85_key)) {
if (zmq_z85_decode (destination_, z85_key)) {
mechanism = ZMQ_CURVE;
return 0;
}