Skip to content

Commit

Permalink
fix clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ztao authored May 20, 2022
1 parent 4ca8633 commit fa8bdd7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# include <io.h>
# include <winsock2.h>
#else
# include <unistd.h>
# include <poll.h>
# include <unistd.h>
#endif
#include <curl/curl.h>

Expand Down Expand Up @@ -492,7 +492,7 @@ class HttpOperation
#else

struct pollfd fds[1];
::memset(fds, 0 , sizeof(fds));
::memset(fds, 0, sizeof(fds));

fds[0].fd = sockfd;
if (for_recv)
Expand All @@ -506,17 +506,17 @@ class HttpOperation

if (poll(fds, 1, timeout_ms) > 0)
{
if (for_recv)
if (for_recv)
{
res = (0 != (fds[0].revents & POLLIN));
}
}
else
{
res = (0 != (fds[0].revents & POLLOUT));
}
}

#endif
#endif

return res;
}
Expand Down

0 comments on commit fa8bdd7

Please sign in to comment.