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

Diff for /src/usr.bin/rdist/rdist.c between version 1.14 and 1.15

version 1.14, 2003/04/05 20:31:58 version 1.15, 2003/05/06 22:10:11
Line 90 
Line 90 
   
         new = (struct namelist *) xmalloc(sizeof(struct namelist));          new = (struct namelist *) xmalloc(sizeof(struct namelist));
         new->n_name = xstrdup(name);          new->n_name = xstrdup(name);
           new->n_regex = NULL;
         new->n_next = NULL;          new->n_next = NULL;
   
         if (*hostlist) {          if (*hostlist) {
Line 401 
Line 402 
         struct namelist *files, *hosts;          struct namelist *files, *hosts;
         struct subcmd *cmds;          struct subcmd *cmds;
         char *dest;          char *dest;
         static struct namelist tnl = { NULL, NULL };          static struct namelist tnl;
         int i;          int i;
   
         if (nargs < 2)          if (nargs < 2)
Line 423 
Line 424 
         if ((dest = strchr(cp, ':')) != NULL)          if ((dest = strchr(cp, ':')) != NULL)
                 *dest++ = '\0';                  *dest++ = '\0';
         tnl.n_name = cp;          tnl.n_name = cp;
           tnl.n_regex = NULL;
           tnl.n_next = NULL;
         hosts = expand(&tnl, E_ALL);          hosts = expand(&tnl, E_ALL);
         if (nerrs)          if (nerrs)
                 exit(1);                  exit(1);

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15