Skip to content

Commit

Permalink
Remove redundant whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 27, 2023
1 parent fb17fbf commit 3f14e56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions receiver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ main(void)
size_t nbytes = UDT::recv(s, (char *)&request, sizeof(struct request), 0);
#else
ssize_t nbytes = UDT::recv(s, (char *)&request, sizeof(struct request), 0);
#endif
#endif

if(nbytes != sizeof(struct request)) {
if(nbytes == UDT::ERROR)
Expand All @@ -138,7 +138,7 @@ main(void)

#ifdef SHUT_WR
shutdown(s, SHUT_WR);
#endif
#endif

request.r_len = ntohll(request.r_len);
/*request.r_rlen = ntohll(request.r_rlen);*/
Expand Down Expand Up @@ -182,7 +182,7 @@ static uint64_t
htonll(uint64_t n)
{
#if __BYTE_ORDER == __BIG_ENDIAN
return n;
return n;
#else
return (((uint64_t)htonl(n)) << 32) + htonl(n >> 32);
#endif
Expand All @@ -192,7 +192,7 @@ static uint64_t
ntohll(uint64_t n)
{
#if __BYTE_ORDER == __BIG_ENDIAN
return n;
return n;
#else
return (((uint64_t)ntohl(n)) << 32) + ntohl(n >> 32);
#endif
Expand Down
4 changes: 2 additions & 2 deletions sender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static uint64_t
htonll(uint64_t n)
{
#if __BYTE_ORDER == __BIG_ENDIAN
return n;
return n;
#else
return (((uint64_t)htonl(n)) << 32) + htonl(n >> 32);
#endif
Expand All @@ -187,7 +187,7 @@ htonll(uint64_t n)
// ntohll(uint64_t n)
// {
// #if __BYTE_ORDER == __BIG_ENDIAN
// return n;
// return n;
// #else
// return (((uint64_t)ntohl(n)) << 32) + ntohl(n >> 32);
// #endif
Expand Down

0 comments on commit 3f14e56

Please sign in to comment.