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

Diff for /src/usr.bin/rdist/distopt.c between version 1.11 and 1.12

version 1.11, 2009/10/27 23:59:42 version 1.12, 2015/01/20 06:02:30
Line 39 
Line 39 
 /*  /*
  * Distfile Option Information   * Distfile Option Information
  */   */
 DISTOPTINFO distoptinfo[] = {  struct distoptinfo {
           opt_t           do_value;
           char           *do_name;
           char           *do_arg;
           size_t         arg_size;
   } distoptinfo[] = {
         { DO_CHKNFS,            "chknfs",       NULL,           0},          { DO_CHKNFS,            "chknfs",       NULL,           0},
         { DO_CHKREADONLY,       "chkreadonly",  NULL,           0},          { DO_CHKREADONLY,       "chkreadonly",  NULL,           0},
         { DO_CHKSYM,            "chksym",       NULL,           0},          { DO_CHKSYM,            "chksym",       NULL,           0},
Line 70 
Line 75 
 /*  /*
  * Get a Distfile Option entry named "name".   * Get a Distfile Option entry named "name".
  */   */
 DISTOPTINFO *  static struct distoptinfo *
 getdistopt(char *name, int *len)  getdistopt(char *name, int *len)
 {  {
         int i;          int i;
Line 92 
Line 97 
 parsedistopts(char *str, opt_t *optptr, int doerrs)  parsedistopts(char *str, opt_t *optptr, int doerrs)
 {  {
         char *string, *optstr;          char *string, *optstr;
         DISTOPTINFO *distopt;          struct distoptinfo *distopt;
         int len;          int len;
   
         /* strtok() is destructive */          /* strtok() is destructive */

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12