[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tftp

Diff for /src/usr.bin/tftp/main.c between version 1.18 and 1.19

version 1.18, 2003/09/24 20:21:40 version 1.19, 2003/09/25 09:45:46
Line 196 
Line 196 
                 argv = margv;                  argv = margv;
         }          }
         if ((argc < 2) || (argc > 3)) {          if ((argc < 2) || (argc > 3)) {
                 printf("usage: %s host-name [port]\n", argv[0]);                  printf("usage: %s [host] [port]\n", argv[0]);
                 return;                  return;
         }          }
         if (inet_aton(argv[1], &peeraddr.sin_addr) != 0) {          if (inet_aton(argv[1], &peeraddr.sin_addr) != 0) {
Line 384 
Line 384 
 static void  static void
 putusage(char *s)  putusage(char *s)
 {  {
         printf("usage: %s file ... host:target, or\n", s);          printf("usage: %s file [[host:]remotename]\n", s);
         printf("       %s file ... target (when already connected)\n", s);          printf("       %s file1 file2 ... fileN [[host:]remote-directory]\n", s);
 }  }
   
 /*  /*
Line 469 
Line 469 
 static void  static void
 getusage(char *s)  getusage(char *s)
 {  {
         printf("usage: %s host:file host:file ... file, or\n", s);          printf("usage: %s [host:]file [localname]\n", s);
         printf("       %s file file ... file if connected\n", s);          printf("       %s [host1:]file1 [host2:]file2 ... [hostN:]fileN\n", s);
 }  }
   
 int     rexmtval = TIMEOUT;  int     rexmtval = TIMEOUT;

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19