]> sjero.net Git - wget/commitdiff
[svn] Doc fix.
authorhniksic <devnull@localhost>
Sat, 8 Nov 2003 19:29:36 +0000 (11:29 -0800)
committerhniksic <devnull@localhost>
Sat, 8 Nov 2003 19:29:36 +0000 (11:29 -0800)
src/retr.c

index 4d03fd4e5e58ddb4b291b88cd600875854e2632f..e177f7a5a692715108dd0dafc23c955cd31ffc9f 100644 (file)
@@ -233,13 +233,12 @@ get_contents (int fd, FILE *fp, long *len, long restval, long expected,
          waittm = (wtimer_read (timer) - last_successful_read_tm) / 1000;
          if (waittm + tmout > opt.read_timeout)
            {
-             /* Don't allow waiting for data to exceed read timeout. */
+             /* Don't allow waiting time to exceed read timeout. */
              tmout = opt.read_timeout - waittm;
              if (tmout < 0)
                {
                  /* We've already exceeded the timeout. */
-                 res = -1;
-                 errno = ETIMEDOUT;
+                 res = -1, errno = ETIMEDOUT;
                  break;
                }
            }