$NetBSD: patch-ad,v 1.2 2004/01/20 02:48:33 jschauma Exp $ --- progs/demos/osdemo.c.orig 2004-01-19 20:07:26.000000000 -0500 +++ progs/demos/osdemo.c 2004-01-19 20:08:09.000000000 -0500 @@ -301,7 +301,7 @@ if (filename != NULL) { #ifdef SAVE_TARGA - write_targa(filename, buffer, WIDTH, HEIGHT); + write_targa(filename, (const GLubyte*)buffer, WIDTH, HEIGHT); #else write_ppm(filename, buffer, WIDTH, HEIGHT); #endif