From fe76370cd3c0e90f588127671dc90291d6d4e2eb Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Sat, 2 Jul 2005 14:41:58 +0000 Subject: [PATCH] While we're here, re-indent properly. :D This commit was SVN r6283. --- opal/util/sys_info.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/opal/util/sys_info.c b/opal/util/sys_info.c index 50f104ec60..a6bcb5d55f 100644 --- a/opal/util/sys_info.c +++ b/opal/util/sys_info.c @@ -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