[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.8 and 1.9

version 1.8, 2001/07/31 14:32:15 version 1.9, 2001/11/19 19:02:16
Line 253 
Line 253 
         int argc;          int argc;
         char *argv[];          char *argv[];
 {  {
         register struct modes *p;          struct modes *p;
         char *sep;          char *sep;
   
         if (argc < 2) {          if (argc < 2) {
Line 320 
Line 320 
         char *argv[];          char *argv[];
 {  {
         int fd;          int fd;
         register int n;          int n;
         register char *cp, *targ;          char *cp, *targ;
   
         if (argc < 2) {          if (argc < 2) {
                 strcpy(line, "send ");                  strcpy(line, "send ");
Line 413 
Line 413 
         char *argv[];          char *argv[];
 {  {
         int fd;          int fd;
         register int n;          int n;
         register char *cp;          char *cp;
         char *src;          char *src;
   
         if (argc < 2) {          if (argc < 2) {
Line 578 
Line 578 
 tail(filename)  tail(filename)
         char *filename;          char *filename;
 {  {
         register char *s;          char *s;
   
         while (*filename) {          while (*filename) {
                 s = strrchr(filename, '/');                  s = strrchr(filename, '/');
Line 597 
Line 597 
 static __dead void  static __dead void
 command()  command()
 {  {
         register struct cmd *c;          struct cmd *c;
   
         for (;;) {          for (;;) {
                 printf("%s> ", prompt);                  printf("%s> ", prompt);
Line 629 
Line 629 
   
 struct cmd *  struct cmd *
 getcmd(name)  getcmd(name)
         register char *name;          char *name;
 {  {
         register char *p, *q;          char *p, *q;
         register struct cmd *c, *found;          struct cmd *c, *found;
         register int nmatches, longest;          int nmatches, longest;
   
         longest = 0;          longest = 0;
         nmatches = 0;          nmatches = 0;
Line 662 
Line 662 
 static int  static int
 makeargv()  makeargv()
 {  {
         register char *cp;          char *cp;
         register char **argp = margv;          char **argp = margv;
         int ret = 0;          int ret = 0;
   
         margc = 0;          margc = 0;
Line 706 
Line 706 
         int argc;          int argc;
         char *argv[];          char *argv[];
 {  {
         register struct cmd *c;          struct cmd *c;
   
         if (argc == 1) {          if (argc == 1) {
                 printf("Commands may be abbreviated.  Commands are:\n\n");                  printf("Commands may be abbreviated.  Commands are:\n\n");
Line 715 
Line 715 
                 return;                  return;
         }          }
         while (--argc > 0) {          while (--argc > 0) {
                 register char *arg;                  char *arg;
                 arg = *++argv;                  arg = *++argv;
                 c = getcmd(arg);                  c = getcmd(arg);
                 if (c == (struct cmd *)-1)                  if (c == (struct cmd *)-1)

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9