bufimage return type is uchar*, not int . Reference: /n/sources/patch/applied/graphics-man-typo Date: Sun Nov 30 02:03:47 CET 2008 Signed-off-by: iru.muzgo@gmail.com --- /sys/man/2/graphics Sun Nov 30 02:03:08 2008 +++ /sys/man/2/graphics Sun Nov 30 02:03:03 2008 @@ -44,7 +44,7 @@ int flushimage(Display *d, int vis) .PP .B -int bufimage(Display *d, int n) +uchar* bufimage(Display *d, int n) .PP .B void lockdisplay(Display *d)