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

Diff for /mandoc/cgi.c between version 1.81 and 1.82

version 1.81, 2014/07/24 08:26:57 version 1.82, 2014/07/24 20:30:45
Line 53  struct req {
Line 53  struct req {
 };  };
   
 static  void             catman(const struct req *, const char *);  static  void             catman(const struct req *, const char *);
 static  int              cmp(const void *, const void *);  
 static  void             format(const struct req *, const char *);  static  void             format(const struct req *, const char *);
 static  void             html_print(const char *);  static  void             html_print(const char *);
 static  void             html_printquery(const struct req *);  static  void             html_printquery(const struct req *);
Line 593  pg_searchres(const struct req *req, struct manpage *r,
Line 592  pg_searchres(const struct req *req, struct manpage *r,
                 return;                  return;
         }          }
   
         qsort(r, sz, sizeof(struct manpage), cmp);  
   
         resp_begin_html(200, NULL);          resp_begin_html(200, NULL);
         resp_searchform(req);          resp_searchform(req);
         puts("<DIV CLASS=\"results\">");          puts("<DIV CLASS=\"results\">");
Line 1057  main(void)
Line 1054  main(void)
                 free(req.p[i]);                  free(req.p[i]);
         free(req.p);          free(req.p);
         return(EXIT_SUCCESS);          return(EXIT_SUCCESS);
 }  
   
 static int  
 cmp(const void *p1, const void *p2)  
 {  
   
         return(strcasecmp(((const struct manpage *)p1)->names,  
             ((const struct manpage *)p2)->names));  
 }  }
   
 /*  /*

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

CVSweb