diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-07-11 03:24:54 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-07-11 03:24:54 +0200 |
commit | 76c1a05f2b7389b9ca01d8af125382fc0a646faa (patch) | |
tree | fb64b8d5f9579d337ac99a0e6c9c77668725bd70 /tecbuf.c | |
parent | 225b1cb38b4086fe764618766507d44799316f36 (diff) | |
download | videoteco-fork-76c1a05f2b7389b9ca01d8af125382fc0a646faa.tar.gz |
some errno and error_message() cleanup
* errno was evaluated even though it was in an undefined state
* error_message()s written by cmd_writebak() were overwritten by cmd_write()
Diffstat (limited to 'tecbuf.c')
-rw-r--r-- | tecbuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1015,6 +1015,7 @@ int status; if(bcount == sizeof(iobuf)){ status = write(chan,iobuf,sizeof(iobuf)); if(status != sizeof(iobuf)){ + /* NOTE: status *should* be -1, errno *should* be set */ return(FAIL); }/* End IF */ bcount = 0; @@ -1037,6 +1038,7 @@ int status; if(bcount > 0){ status = write(chan,iobuf,(unsigned)bcount); if(status != bcount){ + /* NOTE: status *should* be -1, errno *should* be set */ return(FAIL); }/* End IF */ }/* End IF */ |