]> andersk Git - moira.git/blobdiff - gdb/gdb.c
added the new imembers index
[moira.git] / gdb / gdb.c
index b1bebbbf1cf61a32b441545d965a199b1e46205b..fd6cce4269afce3b1719e23aa3bdfb6cc3d0e799 100644 (file)
--- a/gdb/gdb.c
+++ b/gdb/gdb.c
@@ -28,7 +28,7 @@ static char *rcsid_gdb_c = "$Header$";
 /************************************************************************/
 
 #include <stdio.h>
-#include <strings.h>
+#include <string.h>
 #include <signal.h> 
 #include <pwd.h>
 #include "gdb.h"
@@ -68,7 +68,7 @@ gdb_init()
        char hostname[255];                     /* name of local host */
        extern uid_t getuid();
        int uid;                                /* Unix user-i.d. number */
-       char *uname;                            /* string form of i.d. */
+       char *username;                         /* string form of i.d. */
 
        struct passwd *pw_struct;               /* passwd entry comes back */
                                                /* here */
@@ -147,11 +147,11 @@ gdb_init()
 
        if (pw_struct != NULL && pw_struct ->pw_name != NULL &&
            *pw_struct->pw_name !='\0') 
-               uname = pw_struct->pw_name;
+               username = pw_struct->pw_name;
        else
-               uname = "????";
-       gdb_uname = db_alloc(strlen(uname)+1);
-       (void) strcpy(gdb_uname, uname);        
+               username = "????";
+       gdb_uname = db_alloc(strlen(username)+1);
+       (void) strcpy(gdb_uname, username);     
        
        return 0;
 }
This page took 0.068815 seconds and 4 git commands to generate.