Commit 07a33ff3 authored by deuce's avatar deuce
Browse files

Use write() instead of fwrite() on stdout.

parent f415f3ae
......@@ -2822,7 +2822,6 @@ tODResult ODComGetByte(tPortHandle hPort, char *pbtNext, BOOL bWait)
return (kODRCNothingWaiting);
}
/* recv_ret = fread(pbtNext, 1, 1, stdin); */
recv_ret = read(STDIN_FILENO, pbtNext, 1);
if(recv_ret == 1)
break;
......@@ -3004,7 +3003,7 @@ keep_going:
}
}
if(fwrite(&btToSend,1,1,stdout)!=1)
if(write(STDOUT_FILENO, &btToSend, 1)!=1)
return(kODRCGeneralFailure);
break;
}
......@@ -3488,7 +3487,7 @@ try_again:
return(kODRCGeneralFailure);
}
retval=fwrite(pbtBuffer+pos,1,nSize-pos,stdout);
retval=write(STDOUT_FILENO, pbtBuffer+pos,1);
if(retval!=nSize-pos) {
od_sleep(1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment