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 */
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;
}