]> andersk Git - moira.git/blobdiff - gdb/gdb.c
added a declaration of link_against_the_moira_version_of_gdb as a
[moira.git] / gdb / gdb.c
index d53e8faf05dd74d44247f3fa61ab04d55545a235..3eeebf8ce9917efd6624fa4e2f5baa200f7ea988 100644 (file)
--- a/gdb/gdb.c
+++ b/gdb/gdb.c
@@ -40,6 +40,10 @@ extern char *sys_errlist[];
 
 extern int errno;
 
+/* This global is defined to make sure that Moira clients are linked
+ * against the correct library.
+ */
+int link_against_the_moira_version_of_gdb = 0;
 int g_inited = FALSE;                          /* gdb_init has not been */
                                                /* called */
 
@@ -127,7 +131,7 @@ gdb_init()
                uname = pw_struct->pw_name;
        else
                uname = "????";
-       gdb_uname = db_alloc(strlen(hostname)+1);
+       gdb_uname = db_alloc(strlen(uname)+1);
        (void) strcpy(gdb_uname, uname);        
        
        return 0;
This page took 0.059156 seconds and 4 git commands to generate.