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

Diff for /mandoc/cgi.c between version 1.144 and 1.146

version 1.144, 2017/01/21 01:20:31 version 1.146, 2017/01/25 03:49:38
Line 113  static const char *const sec_names[] = {
Line 113  static const char *const sec_names[] = {
 static  const int sec_MAX = sizeof(sec_names) / sizeof(char *);  static  const int sec_MAX = sizeof(sec_names) / sizeof(char *);
   
 static  const char *const arch_names[] = {  static  const char *const arch_names[] = {
     "amd64",       "alpha",       "armv7",      "amd64",       "alpha",       "armv7",      "arm64",
     "hppa",        "i386",        "landisk",      "hppa",        "i386",        "landisk",
     "loongson",    "luna88k",     "macppc",      "mips64",      "loongson",    "luna88k",     "macppc",      "mips64",
     "octeon",      "sgi",         "socppc",      "sparc64",      "octeon",      "sgi",         "socppc",      "sparc64",
Line 799  resp_format(const struct req *req, const char *file)
Line 799  resp_format(const struct req *req, const char *file)
   
         memset(&conf, 0, sizeof(conf));          memset(&conf, 0, sizeof(conf));
         conf.fragment = 1;          conf.fragment = 1;
           conf.style = mandoc_strdup(CSS_DIR "/mandoc.css");
         usepath = strcmp(req->q.manpath, req->p[0]);          usepath = strcmp(req->q.manpath, req->p[0]);
         mandoc_asprintf(&conf.man, "/%s%s%%N.%%S",          mandoc_asprintf(&conf.man, "/%s%s%%N.%%S",
             usepath ? req->q.manpath : "", usepath ? "/" : "");              usepath ? req->q.manpath : "", usepath ? "/" : "");
Line 826  resp_format(const struct req *req, const char *file)
Line 827  resp_format(const struct req *req, const char *file)
         mparse_free(mp);          mparse_free(mp);
         mchars_free();          mchars_free();
         free(conf.man);          free(conf.man);
           free(conf.style);
 }  }
   
 static void  static void

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.146

CVSweb