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

Diff for /mandoc/cgi.c between version 1.29 and 1.31

version 1.29, 2011/12/11 00:22:47 version 1.31, 2011/12/14 13:36:59
Line 792  pg_show(const struct req *req, char *path)
Line 792  pg_show(const struct req *req, char *path)
         }          }
   
         memset(&ps, 0, sizeof(struct manpaths));          memset(&ps, 0, sizeof(struct manpaths));
         manpath_manconf("etc/catman.conf", &ps);          manpath_manconf(&ps, "etc/catman.conf");
   
         if (vol >= (unsigned int)ps.sz) {          if (vol >= (unsigned int)ps.sz) {
                 resp_error400();                  resp_error400();
Line 878  pg_search(const struct req *req, char *path)
Line 878  pg_search(const struct req *req, char *path)
         }          }
   
         memset(&ps, 0, sizeof(struct manpaths));          memset(&ps, 0, sizeof(struct manpaths));
         manpath_manconf("etc/catman.conf", &ps);          manpath_manconf(&ps, "etc/catman.conf");
   
         /*          /*
          * Poor man's tokenisation: just break apart by spaces.           * Poor man's tokenisation: just break apart by spaces.
Line 946  main(void)
Line 946  main(void)
                 progname = "";                  progname = "";
   
         if (NULL == (css = getenv("CSS_DIR")))          if (NULL == (css = getenv("CSS_DIR")))
                 css = "/";                  css = "";
   
         if (NULL == (host = getenv("HTTP_HOST")))          if (NULL == (host = getenv("HTTP_HOST")))
                 host = "localhost";                  host = "localhost";

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.31

CVSweb