Skip to content

Commit

Permalink
Merge pull request #926 from rbalint/master
Browse files Browse the repository at this point in the history
lib/ipc: Introduce writef_void(void*, ...)
  • Loading branch information
p12tic authored Nov 23, 2020
2 parents 142e8dc + bd0c671 commit 06951ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/barrier/ProtocolUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ ProtocolUtil::vwritef(barrier::IStream* stream,

// fill buffer
UInt8* buffer = new UInt8[size];
writef(buffer, fmt, args);
writef_void(buffer, fmt, args);

try {
// write buffer
Expand Down Expand Up @@ -339,7 +339,7 @@ ProtocolUtil::getLength(const char* fmt, va_list args)
}

void
ProtocolUtil::writef(void* buffer, const char* fmt, va_list args)
ProtocolUtil::writef_void(void* buffer, const char* fmt, va_list args)
{
UInt8* dst = static_cast<UInt8*>(buffer);

Expand Down
2 changes: 1 addition & 1 deletion src/lib/barrier/ProtocolUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ProtocolUtil {
const char* fmt, va_list);

static UInt32 getLength(const char* fmt, va_list);
static void writef(void*, const char* fmt, va_list);
static void writef_void(void*, const char* fmt, va_list);
static UInt32 eatLength(const char** fmt);
static void read(barrier::IStream*, void*, UInt32);
};
Expand Down

0 comments on commit 06951ea

Please sign in to comment.