Changeset 6665
- Timestamp:
- 05/04/12 09:19:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/io_serial.c
r6426 r6665 434 434 memcpy(&tv_spent,&tv,sizeof(struct timeval)); 435 435 readed=FALSE; 436 while( (((tv_spent.tv_sec-tv.tv_sec)*1000) + ((tv_spent.tv_usec-tv.tv_usec)/1000L)) <timeout )436 while( (((tv_spent.tv_sec-tv.tv_sec)*1000) + ((tv_spent.tv_usec-tv.tv_usec)/1000L)) < (time_t)timeout ) 437 437 { 438 438 if (read (reader->handle, &c, 1) == 1)
Note:
See TracChangeset
for help on using the changeset viewer.