Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix rmr_rpobe command line bug; add test coverage
[ric-plt/lib/rmr.git]
/
src
/
rmr
/
si
/
src
/
si95
/
sisendt.c
diff --git
a/src/rmr/si/src/si95/sisendt.c
b/src/rmr/si/src/si95/sisendt.c
index
8a4d5f0
..
7935251
100644
(file)
--- a/
src/rmr/si/src/si95/sisendt.c
+++ b/
src/rmr/si/src/si95/sisendt.c
@@
-66,9
+66,8
@@
extern int SIsendt( struct ginfo_blk *gptr, int fd, char *ubuf, int ulen ) {
tpptr = gptr->tp_map[fd];
} else {
// list should be locked before traversing
tpptr = gptr->tp_map[fd];
} else {
// list should be locked before traversing
- for( tpptr = gptr->tplist; tpptr != NULL && tpptr->fd != fd; tpptr = tpptr->next ); // find the block if out of map's range
+ for( tpptr = gptr->tplist; tpptr != NULL && tpptr->fd != fd; tpptr = tpptr->next )
; // find the block if out of map's range
}
}
-
if( tpptr != NULL ) {
if( (fd = tpptr->fd) < 0 ) { // fd user given might not be real, and this might be closed already
errno = EBADFD;
if( tpptr != NULL ) {
if( (fd = tpptr->fd) < 0 ) { // fd user given might not be real, and this might be closed already
errno = EBADFD;