[BACK]Return to tag.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/tag.c between version 1.24 and 1.25

version 1.24, 2019/07/22 03:21:50 version 1.25, 2019/07/27 13:40:57
Line 53  static struct tag_files  tag_files;
Line 53  static struct tag_files  tag_files;
  * but for simplicity, create it anyway.   * but for simplicity, create it anyway.
  */   */
 struct tag_files *  struct tag_files *
 tag_init(void)  tag_init(char *tagname)
 {  {
         struct sigaction         sa;          struct sigaction         sa;
         int                      ofd;          int                      ofd;
Line 61  tag_init(void)
Line 61  tag_init(void)
         ofd = -1;          ofd = -1;
         tag_files.tfd = -1;          tag_files.tfd = -1;
         tag_files.tcpgid = -1;          tag_files.tcpgid = -1;
           tag_files.tagname = tagname;
   
         /* Clean up when dying from a signal. */          /* Clean up when dying from a signal. */
   
Line 129  fail:
Line 130  fail:
         *tag_files.tfn = '\0';          *tag_files.tfn = '\0';
         tag_files.ofd = -1;          tag_files.ofd = -1;
         tag_files.tfd = -1;          tag_files.tfd = -1;
           tag_files.tagname = NULL;
         return NULL;          return NULL;
 }  }
   

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

CVSweb