]> andersk Git - moira.git/commitdiff
solaris won't compile with variable named "uname"
authormar <mar>
Fri, 12 Nov 1993 11:34:14 +0000 (11:34 +0000)
committermar <mar>
Fri, 12 Nov 1993 11:34:14 +0000 (11:34 +0000)
gdb/gdb.c

index b1bebbbf1cf61a32b441545d965a199b1e46205b..03d10ee59682e44aa868f001007ab08f869ff5f1 100644 (file)
--- a/gdb/gdb.c
+++ b/gdb/gdb.c
@@ -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.251647 seconds and 5 git commands to generate.