Revision: 41395
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41395&view=rev
Author:   brlcad
Date:     2010-11-17 21:22:43 +0000 (Wed, 17 Nov 2010)

Log Message:
-----------
Simple() is really just basename()

Modified Paths:
--------------
    brlcad/trunk/src/fb/ioutil.c

Modified: brlcad/trunk/src/fb/ioutil.c
===================================================================
--- brlcad/trunk/src/fb/ioutil.c        2010-11-17 20:30:13 UTC (rev 41394)
+++ brlcad/trunk/src/fb/ioutil.c        2010-11-17 21:22:43 UTC (rev 41395)
@@ -35,19 +35,10 @@
 #include "fb.h"
 
 
-const char *
-Simple(const char *path)
-{
-    const char *s;             /* -> past last '/' in path */
-    
-    return (s = strrchr( path, '/' )) == NULL || *++s == '\0' ? path : s;
-}
-
-
 void
 VMessage(const char *format, va_list ap)
 {
-    fprintf( stderr, "%s: ", Simple(bu_getprogname()) );
+    fprintf( stderr, "%s: ", bu_basename(bu_getprogname()));
     vfprintf( stderr, format, ap );
     putc( '\n', stderr );
     fflush( stderr );


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to