[BACK]Return to main.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / ftp

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/ftp/main.c between version 1.62 and 1.63

version 1.62, 1999/10/11 12:34:17 version 1.63, 1999/10/12 06:05:01
Line 537  cmdscanner(top)
Line 537  cmdscanner(top)
                                 fputs(prompt(), ttyout);                                  fputs(prompt(), ttyout);
                                 (void)fflush(ttyout);                                  (void)fflush(ttyout);
                         }                          }
                         if (fgets(line, sizeof(line), stdin) == NULL)                          if (fgets(line, sizeof(line), stdin) == NULL) {
                                   if (fromatty)
                                           putc('\n', ttyout);
                                 quit(0, 0);                                  quit(0, 0);
                           }
                         num = strlen(line);                          num = strlen(line);
                         if (num == 0)                          if (num == 0)
                                 break;                                  break;
Line 558  cmdscanner(top)
Line 561  cmdscanner(top)
                         HistEvent ev;                          HistEvent ev;
                         cursor_pos = NULL;                          cursor_pos = NULL;
   
                         if ((buf = el_gets(el, &num)) == NULL || num == 0)                          if ((buf = el_gets(el, &num)) == NULL || num == 0) {
                                   if (fromatty)
                                           putc('\n', ttyout);
                                 quit(0, 0);                                  quit(0, 0);
                           }
                         if (buf[--num] == '\n') {                          if (buf[--num] == '\n') {
                                 if (num == 0)                                  if (num == 0)
                                         break;                                          break;

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63

CVSweb <webmaster@jp.NetBSD.org>