Revision: 39967 http://brlcad.svn.sourceforge.net/brlcad/?rev=39967&view=rev Author: bob1961 Date: 2010-07-29 14:23:00 +0000 (Thu, 29 Jul 2010)
Log Message: ----------- fb_close_existing was wrongly comparing if_type with if_name. Modified Paths: -------------- brlcad/trunk/src/libfb/fb_generic.c Modified: brlcad/trunk/src/libfb/fb_generic.c =================================================================== --- brlcad/trunk/src/libfb/fb_generic.c 2010-07-29 13:55:09 UTC (rev 39966) +++ brlcad/trunk/src/libfb/fb_generic.c 2010-07-29 14:23:00 UTC (rev 39967) @@ -248,7 +248,7 @@ #ifdef IF_X { extern FBIO X24_interface; - if (strcasecmp(ifp->if_name, X24_interface.if_type) == 0) { + if (strcasecmp(ifp->if_name, X24_interface.if_name) == 0) { int status = -1; if ((status = X24_close_existing(ifp)) <= -1) { fb_log("fb_close_existing: cannot close device \"%s\", ret=%d.\n", ifp->if_name, status); @@ -267,7 +267,7 @@ #ifdef IF_WGL { extern FBIO wgl_interface; - if (strcasecmp(ifp->if_name, wgl_interface.if_type) == 0) { + if (strcasecmp(ifp->if_name, wgl_interface.if_name) == 0) { int status = -1; if ((status = wgl_close_existing(ifp)) <= -1) { fb_log("fb_close_existing: cannot close device \"%s\", ret=%d.\n", ifp->if_name, status); @@ -285,7 +285,7 @@ #ifdef IF_OGL { extern FBIO ogl_interface; - if (strcasecmp(ifp->if_name, ogl_interface.if_type) == 0) { + if (strcasecmp(ifp->if_name, ogl_interface.if_name) == 0) { int status = -1; if ((status = ogl_close_existing(ifp)) <= -1) { fb_log("fb_close_existing: cannot close device \"%s\", ret=%d.\n", ifp->if_name, status); @@ -303,7 +303,7 @@ #ifdef IF_RTGL { extern FBIO ogl_interface; - if (strcasecmp(ifp->if_name, ogl_interface.if_type) == 0) { + if (strcasecmp(ifp->if_name, ogl_interface.if_name) == 0) { int status = -1; if ((status = ogl_close_existing(ifp)) <= -1) { fb_log("fb_close_existing: cannot close device \"%s\", ret=%d.\n", ifp->if_name, status); @@ -321,7 +321,7 @@ #ifdef IF_TK { extern FBIO tk_interface; - if (strcasecmp(ifp->if_name, tk_interface.if_type) == 0) { + if (strcasecmp(ifp->if_name, tk_interface.if_name) == 0) { /* may need to close_existing here at some point */ if (ifp->if_pbase != PIXEL_NULL) free((void *)ifp->if_pbase); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits