Skip to content

Commit

Permalink
slirp: remove unused function u_sleep
Browse files Browse the repository at this point in the history
Signed-off-by: Blue Swirl <[email protected]>
  • Loading branch information
blueswirl committed Nov 10, 2012
1 parent e62774c commit 036208c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions slirp/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,20 +253,6 @@ void lprint(const char *format, ...)
va_end(args);
}

void
u_sleep(int usec)
{
struct timeval t;
fd_set fdset;

FD_ZERO(&fdset);

t.tv_sec = 0;
t.tv_usec = usec * 1000;

select(0, &fdset, &fdset, &fdset, &t);
}

void slirp_connection_info(Slirp *slirp, Monitor *mon)
{
const char * const tcpstates[] = {
Expand Down
1 change: 0 additions & 1 deletion slirp/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ void snooze_hup(int);
void snooze(void);
void relay(int);
void add_emu(char *);
void u_sleep(int);
void fd_nonblock(int);
void fd_block(int);
int rsh_exec(struct socket *, struct socket *, char *, char *, char *);
Expand Down

0 comments on commit 036208c

Please sign in to comment.