[minicom-Bugs][306746] int usleep(unsigned usecs) in lib/usleep.c

minicom-bugs at alioth.debian.org minicom-bugs at alioth.debian.org
Tue Nov 13 03:41:42 UTC 2007


Bugs item #306746, was opened at 2007-11-13 03:41
Status: Open
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: int usleep(unsigned usecs) in lib/usleep.c 
Category: None
Group: None
Resolution: Fixed


Initial Comment:
 1:#ifdef HAVE_CONFIG_H
 2:# include <config.h>
 3:#endif
 4:
 5:#include "../src/rcsid.h"
 6:RCSID("$Id: usleep.c,v 1.1.1.1 2003-03-30 18:55:40 al-guest Exp $")
 7:
 8:#include <sys/time.h>
 9:#include <sys/select.h>
10:
11:int usleep(unsigned usecs)
12:{
13:	struct timeval t;
14:	
15:	t.tv_sec = usecs/10000000;
16:	t.tv_usec = usecs%1000000;
17:	(void) select(1, NULL, NULL, NULL, &t);
18:	return 0;
19:}

In the line 15,there should be 
t.tv_sec = usecs/1000000;
there is one 0 more than needed!


----------------------------------------------------------------------

You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=100031&aid=306746&group_id=30018



More information about the minicom-devel mailing list