Skip to content

Commit

Permalink
#93 Fix build errors of sample apps with 32-bit Clang versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagliughi committed Dec 22, 2023
1 parent e6c4688 commit 4a0d8e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/udp/udpechosvr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// --------------------------------------------------------------------------
// This file is part of the "sockpp" C++ socket library.
//
// Copyright (c) 2019 Frank Pagliughi
// Copyright (c) 2019-2023 Frank Pagliughi
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -72,7 +72,7 @@ void run_echo(UDPSOCK sock)
// Read some data, also getting the address of the sender,
// then just send it back.
while ((n = sock.recv_from(buf, sizeof(buf), &srcAddr)) > 0)
sock.send_to(buf, n, srcAddr);
sock.send_to((void*) buf, n, srcAddr);
}

// --------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions examples/unix/undgramechosvr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// --------------------------------------------------------------------------
// This file is part of the "sockpp" C++ socket library.
//
// Copyright (c) 2019 Frank Pagliughi
// Copyright (c) 2019-2023 Frank Pagliughi
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -86,7 +86,7 @@ int main(int argc, char* argv[])
// Read some data, also getting the address of the sender,
// then just send it back.
while ((n = sock.recv_from(buf, sizeof(buf), &srcAddr)) > 0)
sock.send_to(buf, n, srcAddr);
sock.send_to((void*) buf, n, srcAddr);

return 0;
}
Expand Down

0 comments on commit 4a0d8e0

Please sign in to comment.