about summary refs log tree commit homepage
path: root/httpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.h')
-rw-r--r--httpd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/httpd.h b/httpd.h
index 8e58286..eddea97 100644
--- a/httpd.h
+++ b/httpd.h
@@ -473,10 +473,10 @@ static off_t write_loc_name(FILE *fp, const struct src_loc *l)
         }
         if (l->f) {
                 fputs(l->f->fn, fp);
-                if (l->lineno == UINT_MAX)
+                if (l->lineno == U24_MAX)
                         FPUTS(":-", fp);
                 else
-                        fprintf(fp, ":%zu", l->lineno);
+                        fprintf(fp, ":%u", l->lineno);
         }
         if (l->bt_len) {
                 AUTO_FREE char **s = bt_syms(l->bt, l->bt_len);
@@ -703,7 +703,7 @@ static enum mw_qev each_gt(struct mw_h1 *h1, struct mw_h1req *h1r,
                                 hsl->live, hsl->mean_life, hsl->max_life);
                         FPUTS("<td><a\nhref=\"../at/", fp);
 
-                        write_b64_url(fp, (const void *)&hsl->sl->f,
+                        write_b64_url(fp, src_loc_hash_tip(hsl->sl),
                                         src_loc_hash_len(hsl->sl));
 
                         FPUTS("\">", fp);