]> granicus.if.org Git - graphviz/commitdiff
- no more username in output.
authorellson <devnull@localhost>
Thu, 12 Feb 2009 17:47:24 +0000 (17:47 +0000)
committerellson <devnull@localhost>
Thu, 12 Feb 2009 17:47:24 +0000 (17:47 +0000)
- creator always "graphviz"
- pass in lt_preload_symbols from code using libgvc - avoiding problems with --enable-static
- clean out various bits of dead code

lib/common/types.h
lib/common/utils.c

index 8426c037d683ea3a203786b29ae8dd2343204854..0f590dcf38899d65e8097ac14b12c826ff610a7d 100644 (file)
@@ -197,8 +197,7 @@ extern "C" {
 
     struct codegen_s {
        void (*reset) (void);
-       void (*begin_job) (FILE * ofp, graph_t * g, const char **lib, char *user,
-                          char *info[], point pages);
+       void (*begin_job) (FILE * ofp, graph_t * g, const char **lib, char *info[], point pages);
        void (*end_job) (void);
        void (*begin_graph) (GVC_t * gvc, graph_t * g, box bb, point pb);
        void (*end_graph) (void);
index c01645d32fb671877e6a7efe1a61b5585d2a87f8..862b999e640f810222556a83498ff4509450d263 100644 (file)
@@ -319,39 +319,6 @@ static void cleanup(void)
 #endif
 #endif
 
-char *gvUsername(void)
-{
-    char *user = NULL;
-#if !defined(MSWIN32) && !defined(WIN32)
-    static int first = 1;
-    struct passwd *p;
-    if (first) {
-       agxbinit(&xb, SMALLBUF, userbuf);
-#if 0
-       atexit(cleanup);
-#endif
-       first = 0;
-    }
-    p = (struct passwd *) getpwuid(getuid());
-    if (p) {
-       agxbputc(&xb, '(');
-       agxbput(&xb, p->pw_name);
-       agxbput(&xb, ") ");
-#ifdef SVR4
-       agxbput(&xb, p->pw_comment);
-#else
-       agxbput(&xb, p->pw_gecos);
-#endif
-       user = agxbuse(&xb);
-    }
-#endif
-    if (user == NULL)
-       user = getenv ("USERNAME");
-    if (user == NULL)
-       user = "Bill Gates";
-    return user;
-}
-
 /* Fgets:
  * Read a complete line.
  * Return pointer to line,