From e9dbe58b8b541d0abb9be9e1000a63776abe678c Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Sun, 24 Jul 2005 07:38:23 +0000 Subject: Gut a few more dead bits. Replace uses of the CreateNewScreenFunc typedef (from glxclient.h) with PFNCREATENEWSCREEN (from dri_interface.h). Remove the prototype for __driCreateScreen and fix the prototype for __driCreateNewScreen (append the API version) in dri_interface.h. --- src/glx/x11/dri_glx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/glx/x11/dri_glx.c') diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index a4a389ce5d..8cc0b62b02 100644 --- a/src/glx/x11/dri_glx.c +++ b/src/glx/x11/dri_glx.c @@ -237,7 +237,7 @@ static __DRIdriver *OpenDriver(const char *driverName) return NULL; /* out of memory! */ } - driver->createNewScreenFunc = (CreateNewScreenFunc) + driver->createNewScreenFunc = (PFNCREATENEWSCREENFUNC) dlsym(handle, createNewScreenName); if ( driver->createNewScreenFunc == NULL ) { @@ -424,7 +424,8 @@ void *driCreateDisplay(Display *dpy, __DRIdisplay *pdisp) pdisp->destroyDisplay = driDestroyDisplay; /* allocate array of pointers to createNewScreen funcs */ - pdisp->createNewScreen = (CreateNewScreenFunc *) Xmalloc(numScreens * sizeof(void *)); + pdisp->createNewScreen = (PFNCREATENEWSCREENFUNC *) + Xmalloc(numScreens * sizeof(void *)); if (!pdisp->createNewScreen) { Xfree(pdpyp); return NULL; -- cgit v1.2.3