Skip to content

Commit 4817f30

Browse files
committed
Fixing warnings in log printf -- use z for size types instead of "long"
1 parent 69823ee commit 4817f30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clarcnet.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ namespace clarcnet {
431431
peer::conn_map::iterator peer::disconnect(peer::conn_map::iterator conn_it)
432432
{
433433
int cfd = conn_it->first;
434-
LOG("erasing %d from size %lu", cfd, conns.size());
434+
LOG("erasing %d from size %zu", cfd, conns.size());
435435

436436
delayed.erase(remove_if(delayed.begin(), delayed.end(),
437437
[=](delayed_send const& ds) {
@@ -551,7 +551,7 @@ namespace clarcnet {
551551

552552
ret_code server::process_initiated(int cfd, conn_info& ci, packets& in, packets& out)
553553
{
554-
LOG("process_initiated %d %lu %lu", cfd, in.size(), out.size());
554+
LOG("process_initiated %d %zu %zu", cfd, in.size(), out.size());
555555

556556
if (in.empty() || in.front().mid != ID_VERSION) return WAITING;
557557

@@ -675,7 +675,7 @@ namespace clarcnet {
675675

676676
assert(!conns.count(cfd));
677677
conn_info& ci = conns[cfd];
678-
LOG("added %d now size %lu", cfd, conns.size());
678+
LOG("added %d now size %zu", cfd, conns.size());
679679

680680
LOG("transition %d to initiated", cfd);
681681
ci.st = conn_info::INITIATED;
@@ -953,7 +953,7 @@ namespace clarcnet {
953953
assert(len < in.size());
954954
assert(len < out.size());
955955

956-
LOG("CipherUpdate %d %d %d %lu %lu", rem, len, this_len, out.size(), in.size());
956+
LOG("CipherUpdate %d %d %d %zu %zu", rem, len, this_len, out.size(), in.size());
957957

958958
if (EVP_CipherUpdate(
959959
ctx,

0 commit comments

Comments
 (0)