dj(1): remove do/while statement in read loop
This commit is contained in:
parent
c8b4f7a8b3
commit
9086bf0d08
15
src/dj.c
15
src/dj.c
@ -158,7 +158,7 @@ usage(char *s) {
|
|||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
int align; /* low 8b used, negative if no alignment is being done */
|
int align; /* low 8b used, negative if no alignment is being done */
|
||||||
int count; /* 0 if dj(1) runs until no more reads are possible */
|
int count; /* -1 if dj(1) runs until no more reads are possible */
|
||||||
char *fmt; /* == fmt_asv (default) or fmt_human (-H) */
|
char *fmt; /* == fmt_asv (default) or fmt_human (-H) */
|
||||||
size_t i; /* side of io being modified */
|
size_t i; /* side of io being modified */
|
||||||
char noerror; /* 0=exits (default) 1=retries on partial reads or writes */
|
char noerror; /* 0=exits (default) 1=retries on partial reads or writes */
|
||||||