1
1

While we're here, re-indent properly. :D

This commit was SVN r6283.
Этот коммит содержится в:
Jeff Squyres 2005-07-02 14:41:58 +00:00
родитель ff41c82259
Коммит fe76370cd3

Просмотреть файл

@ -109,18 +109,18 @@ int orte_sys_info(void)
/* get the name of the user */
#ifndef WIN32
uid = getuid();
if ((pwdent = getpwuid(uid)) != 0) {
orte_system_info.user = strdup(pwdent->pw_name);
if ((pwdent = getpwuid(uid)) != 0) {
orte_system_info.user = strdup(pwdent->pw_name);
} else {
if (0 > asprintf(&(orte_system_info.user), "%d", uid)) {
if (0 > asprintf(&(orte_system_info.user), "%d", uid)) {
return ORTE_ERR_OUT_OF_RESOURCE;
}
}
}
#else
if (!GetUserName(info_buf, &info_buf_length)) {
orte_system_info.user = strdup("unknown");
orte_system_info.user = strdup("unknown");
} else {
orte_system_info.user = strdup(info_buf);
orte_system_info.user = strdup(info_buf);
}
#endif