projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b6fc07
)
Update bytesRemain iff R/W operation.
author
jbj
<devnull@localhost>
Tue, 8 Feb 2005 17:15:10 +0000
(17:15 +0000)
committer
jbj
<devnull@localhost>
Tue, 8 Feb 2005 17:15:10 +0000
(17:15 +0000)
CVS patchset: 7746
CVS date: 2005/02/08 17:15:10
rpmio/rpmio_internal.h
patch
|
blob
|
history
diff --git
a/rpmio/rpmio_internal.h
b/rpmio/rpmio_internal.h
index
13c89ac
..
660ca15
100644
(file)
--- a/
rpmio/rpmio_internal.h
+++ b/
rpmio/rpmio_internal.h
@@
-418,7
+418,14
@@
void fdstat_exit(/*@null@*/ FD_t fd, int opx, ssize_t rc)
if (rc == -1)
fd->syserrno = errno;
else if (rc > 0 && fd->bytesRemain > 0)
+ switch (opx) {
+ case FDSTAT_READ:
+ case FDSTAT_WRITE:
fd->bytesRemain -= rc;
+ break;
+ default:
+ break;
+ }
if (fd->stats != NULL)
(void) rpmswExit(fdstat_op(fd, opx), rc);
}