Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update 14.10.c
  • Loading branch information
himanshu-17 authored Oct 1, 2019
commit ccd3fbb366ce6c2ca7035e175378d9b1ec94cd72
4 changes: 2 additions & 2 deletions 14.10.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

int main(void)
{
int n, flag;
int s, flag;
char ctlbuf[BUFFSIZE], datbuf[BUFFSIZE];
struct strbuf ctl, dat;

Expand All @@ -18,7 +18,7 @@ int main(void)

for ( ; ;) {
flag = 0;
if ((n = getmsg(STDIN_FILENO, &ctl, &dat, &flag)) < 0) {
if ((s = getmsg(STDIN_FILENO, &ctl, &dat, &flag)) < 0) {
printf("getmsg error\n");
exit(-1);
}
Expand Down