Formatting for readability.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@911 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1996-10-28 17:18:24 +00:00
parent a822972294
commit 50d3e51784

View File

@@ -25,8 +25,10 @@ utmpx_login(char *line, char *user, char *host)
*/
while ((ut = getutxent())) {
if (ut->ut_pid == mypid && (ut->ut_type == INIT_PROCESS
|| ut->ut_type == LOGIN_PROCESS || ut->ut_type == USER_PROCESS)) {
if (ut->ut_pid == mypid
&& ( ut->ut_type == INIT_PROCESS
|| ut->ut_type == LOGIN_PROCESS
|| ut->ut_type == USER_PROCESS)) {
strncpy(ut->ut_line, line, sizeof(ut->ut_line));
strncpy(ut->ut_user, user, sizeof(ut->ut_user));
strncpy(ut->ut_host, host, sizeof(ut->ut_host));