killed trailing whitespace

This commit is contained in:
Daniel Stenberg 2006-01-03 22:44:58 +00:00
parent 66c7427df0
commit 7278f17e8f
1 changed files with 11 additions and 11 deletions

View File

@ -369,7 +369,7 @@ static int synchnet(curl_socket_t f /* socket to flush */)
while (1) { while (1) {
#if defined(HAVE_IOCTLSOCKET) #if defined(HAVE_IOCTLSOCKET)
(void) ioctlsocket(f, FIONREAD, &i); (void) ioctlsocket(f, FIONREAD, &i);
#else #else
(void) ioctl(f, FIONREAD, &i); (void) ioctl(f, FIONREAD, &i);
#endif #endif
if (i) { if (i) {
@ -753,7 +753,7 @@ static void sendtftp(struct testcase *test, struct formats *pf)
dp->th_opcode = htons((u_short)DATA); dp->th_opcode = htons((u_short)DATA);
dp->th_block = htons((u_short)block); dp->th_block = htons((u_short)block);
timeout = 0; timeout = 0;
#ifdef HAVE_SIGSETJMP #ifdef HAVE_SIGSETJMP
(void) sigsetjmp(timeoutbuf, 1); (void) sigsetjmp(timeoutbuf, 1);
#endif #endif
send_data: send_data:
@ -763,13 +763,13 @@ static void sendtftp(struct testcase *test, struct formats *pf)
} }
read_ahead(test, pf->f_convert); read_ahead(test, pf->f_convert);
for ( ; ; ) { for ( ; ; ) {
#ifdef HAVE_ALARM #ifdef HAVE_ALARM
alarm(rexmtval); /* read the ack */ alarm(rexmtval); /* read the ack */
#endif #endif
n = recv(peer, ackbuf, sizeof (ackbuf), 0); n = recv(peer, ackbuf, sizeof (ackbuf), 0);
#ifdef HAVE_ALARM #ifdef HAVE_ALARM
alarm(0); alarm(0);
#endif #endif
if (n < 0) { if (n < 0) {
logmsg("read: fail\n"); logmsg("read: fail\n");
return; return;
@ -834,11 +834,11 @@ send_ack:
} }
write_behind(test, pf->f_convert); write_behind(test, pf->f_convert);
for ( ; ; ) { for ( ; ; ) {
#ifdef HAVE_ALARM #ifdef HAVE_ALARM
alarm(rexmtval); alarm(rexmtval);
#endif #endif
n = recv(peer, dp, PKTSIZE, 0); n = recv(peer, dp, PKTSIZE, 0);
#ifdef HAVE_ALARM #ifdef HAVE_ALARM
alarm(0); alarm(0);
#endif #endif
if (n < 0) { /* really? */ if (n < 0) { /* really? */
@ -877,11 +877,11 @@ send_ack:
#if defined(HAVE_ALARM) && defined(SIGALRM) #if defined(HAVE_ALARM) && defined(SIGALRM)
mysignal(SIGALRM, justquit); /* just quit on timeout */ mysignal(SIGALRM, justquit); /* just quit on timeout */
alarm(rexmtval); alarm(rexmtval);
#endif #endif
n = recv(peer, buf, sizeof (buf), 0); /* normally times out and quits */ n = recv(peer, buf, sizeof (buf), 0); /* normally times out and quits */
#ifdef HAVE_ALARM #ifdef HAVE_ALARM
alarm(0); alarm(0);
#endif #endif
if (n >= 4 && /* if read some data */ if (n >= 4 && /* if read some data */
dp->th_opcode == DATA && /* and got a data block */ dp->th_opcode == DATA && /* and got a data block */
block == dp->th_block) { /* then my last ack was lost */ block == dp->th_block) { /* then my last ack was lost */