X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=blobdiff_plain;f=pctb%2Fpages.c;h=010299948d929d3f1ce247d683de11b900bb6697;hp=c504c951e75956e77b2a3c2ad6e9504d169bab62;hb=e78d72697e53d276737fae8519c921c70f0709f7;hpb=64063c86071bbfc2de0fe032e372e1321c4b34e5 diff --git a/pctb/pages.c b/pctb/pages.c index c504c95..0102999 100644 --- a/pctb/pages.c +++ b/pctb/pages.c @@ -516,12 +516,12 @@ static void set_focus_commodity(void) { debugf("PAGING raise_and_set_focus done.\n"); } -static CanonImage *convert_page(Snapshot *sn) { +static CanonImage *convert_page(const Snapshot *sn) { CanonImage *im; fwrite_ppmraw(screenshot_file, sn); - unsigned char *pixel= sn->data; + const unsigned char *pixel= sn->data; CANONICALISE_IMAGE(im, sn->w, sn->h, { r= *pixel++; g= *pixel++;