Commit 8f07f59be2448e0079e4f61c3d9a2719c4ed15eb
1 parent
1294de60
Exists in
master
and in
5 other branches
Ajustes para empacotamento em windows.
Showing
1 changed file
with
8 additions
and
8 deletions
Show diff stats
src/lib3270/iocalls.c
| @@ -318,7 +318,7 @@ retry: | @@ -318,7 +318,7 @@ retry: | ||
| 318 | FD_ZERO(&wfds); | 318 | FD_ZERO(&wfds); |
| 319 | FD_ZERO(&xfds); | 319 | FD_ZERO(&xfds); |
| 320 | 320 | ||
| 321 | - for (ip = inputs; ip != (input_t *)NULL; ip = ip->next) | 321 | + for (ip = hSession->inputs; ip != (input_t *)NULL; ip = ip->next) |
| 322 | { | 322 | { |
| 323 | if(ip->flag & LIB3270_IO_FLAG_READ) | 323 | if(ip->flag & LIB3270_IO_FLAG_READ) |
| 324 | { | 324 | { |
| @@ -341,13 +341,13 @@ retry: | @@ -341,13 +341,13 @@ retry: | ||
| 341 | 341 | ||
| 342 | if (block) | 342 | if (block) |
| 343 | { | 343 | { |
| 344 | - if (timeouts != TN) | 344 | + if (hSession->timeouts != TN) |
| 345 | { | 345 | { |
| 346 | ms_ts(&now); | 346 | ms_ts(&now); |
| 347 | - if (now > timeouts->ts) | 347 | + if (now > hSession->timeouts->ts) |
| 348 | tmo = 0; | 348 | tmo = 0; |
| 349 | else | 349 | else |
| 350 | - tmo = timeouts->ts - now; | 350 | + tmo = hSession->timeouts->ts - now; |
| 351 | } | 351 | } |
| 352 | else | 352 | else |
| 353 | { | 353 | { |
| @@ -379,13 +379,13 @@ retry: | @@ -379,13 +379,13 @@ retry: | ||
| 379 | } | 379 | } |
| 380 | else | 380 | else |
| 381 | { | 381 | { |
| 382 | - for (ip = inputs; ip != (input_t *) NULL; ip = ip->next) | 382 | + for (ip = hSession->inputs; ip != (input_t *) NULL; ip = ip->next) |
| 383 | { | 383 | { |
| 384 | if((ip->flag & LIB3270_IO_FLAG_READ) && FD_ISSET(ip->fd, &rfds)) | 384 | if((ip->flag & LIB3270_IO_FLAG_READ) && FD_ISSET(ip->fd, &rfds)) |
| 385 | { | 385 | { |
| 386 | (*ip->call)(ip->session,ip->fd,LIB3270_IO_FLAG_READ,ip->userdata); | 386 | (*ip->call)(ip->session,ip->fd,LIB3270_IO_FLAG_READ,ip->userdata); |
| 387 | processed_any = True; | 387 | processed_any = True; |
| 388 | - if (inputs_changed) | 388 | + if (hSession->inputs_changed) |
| 389 | goto retry; | 389 | goto retry; |
| 390 | } | 390 | } |
| 391 | 391 | ||
| @@ -393,7 +393,7 @@ retry: | @@ -393,7 +393,7 @@ retry: | ||
| 393 | { | 393 | { |
| 394 | (*ip->call)(ip->session,ip->fd,LIB3270_IO_FLAG_WRITE,ip->userdata); | 394 | (*ip->call)(ip->session,ip->fd,LIB3270_IO_FLAG_WRITE,ip->userdata); |
| 395 | processed_any = True; | 395 | processed_any = True; |
| 396 | - if (inputs_changed) | 396 | + if (hSession->inputs_changed) |
| 397 | goto retry; | 397 | goto retry; |
| 398 | } | 398 | } |
| 399 | 399 | ||
| @@ -401,7 +401,7 @@ retry: | @@ -401,7 +401,7 @@ retry: | ||
| 401 | { | 401 | { |
| 402 | (*ip->call)(ip->session,ip->fd,LIB3270_IO_FLAG_EXCEPTION,ip->userdata); | 402 | (*ip->call)(ip->session,ip->fd,LIB3270_IO_FLAG_EXCEPTION,ip->userdata); |
| 403 | processed_any = True; | 403 | processed_any = True; |
| 404 | - if (inputs_changed) | 404 | + if (hSession->inputs_changed) |
| 405 | goto retry; | 405 | goto retry; |
| 406 | } | 406 | } |
| 407 | } | 407 | } |