Skip to content

Commit

Permalink
single thread: st_client.c. remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Aug 7, 2019
1 parent eab8fe5 commit 1e240a9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions programs/st_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ handle_packets(int sock, struct socket* s, void* sconn_addr)
ssize_t length;
char buf[MAX_PACKET_SIZE];

fd_set rfds;
struct timeval tv;
int retval;

unsigned next_fire_time = get_tick_count();
unsigned last_fire_time = next_fire_time;
Expand All @@ -99,8 +97,6 @@ handle_packets(int sock, struct socket* s, void* sconn_addr)
tv.tv_sec = wait_time / 1000;
tv.tv_usec = (wait_time % 1000) * 1000;

retval = select(1, &rfds, NULL, NULL, &tv);

length = recv(sock, buf, MAX_PACKET_SIZE, 0);
if (length > 0) {
if ((dump_buf = usrsctp_dumppacket(buf, (size_t)length, SCTP_DUMP_INBOUND)) != NULL) {
Expand Down

0 comments on commit 1e240a9

Please sign in to comment.