mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 09:39:03 -04:00
ncdirect_flush: remove dead store
This commit is contained in:
parent
659df1725b
commit
e9cd118525
@ -1070,8 +1070,7 @@ bool ncdirect_canutf8(const ncdirect* n){
|
|||||||
}
|
}
|
||||||
|
|
||||||
int ncdirect_flush(const ncdirect* nc){
|
int ncdirect_flush(const ncdirect* nc){
|
||||||
int r;
|
while(fflush(nc->ttyfp) == EOF){
|
||||||
while((r = fflush(nc->ttyfp)) == EOF){
|
|
||||||
if(errno != EAGAIN){
|
if(errno != EAGAIN){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user