[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.13 and 1.14

version 1.13, 2015/01/20 09:00:16 version 1.14, 2021/06/22 20:19:28
Line 134 
Line 134 
 }  }
   
 /*  /*
  * Get a list of the Distfile Option Entries.  
  */  
 char *  
 getdistoptlist(void)  
 {  
         int i;  
         static char buf[1024];  
   
         for (i = 0, buf[0] = CNULL; distoptinfo[i].do_name; ++i) {  
                 if (buf[0] == CNULL)  
                         (void) strlcpy(buf, distoptinfo[i].do_name, sizeof buf);  
                 else {  
                         (void) strlcat(buf, ",", sizeof buf);  
                         (void) strlcat(buf, distoptinfo[i].do_name, sizeof buf);  
                 }  
         }  
   
         return(buf);  
 }  
   
 /*  
  * Get a list of the Distfile Option Entries for each enabled   * Get a list of the Distfile Option Entries for each enabled
  * value in "opts".   * value in "opts".
  */   */

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