[cairo-bugs] [Bug 28060] New: documentation error for cairo_write_func_t description; missing "const"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue May 11 02:16:26 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=28060

           Summary: documentation error for cairo_write_func_t
                    description; missing "const"
           Product: cairo
           Version: 1.9.7
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: medium
         Component: png functions
        AssignedTo: cworth at cworth.org
        ReportedBy: benkasminbullock at gmail.com
         QAContact: cairo-bugs at cairographics.org


As seen on the Cairo webpages,

http://cairographics.org/manual/cairo-png-functions.html

the type "cairo_write_func_t" is described as follows:

cairo_status_t      (*cairo_write_func_t)               (void *closure,
                                                         unsigned char *data,
                                                         unsigned int length);

However, using this for the callback caused a compiler warning. Looking at the
header file, the second argument should be "const unsigned char * data".

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list