summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-07 02:15:51 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-07 02:15:51 +0000
commit3efc309a18a5b7ba32157da2e8fb005fafbbd5d5 (patch)
treefaa110314eb8b2c530cc679c69b23784873d0a47
parentfcc6396daa203dd6bea8fca28e9493b370c11a50 (diff)
(pinode): Remove assignment from if test.
-rw-r--r--ufs-fsck/utilities.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ufs-fsck/utilities.c b/ufs-fsck/utilities.c
index e8475506..d5ff8c1b 100644
--- a/ufs-fsck/utilities.c
+++ b/ufs-fsck/utilities.c
@@ -1,5 +1,5 @@
/* Miscellaneous functions for fsck
- Copyright (C) 1994 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1995 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -256,7 +256,8 @@ pinode (ino_t ino)
getinode (ino, &dino);
printf (" OWNER=");
- if (pw = getpwuid (dino.di_uid))
+ pw = getpwuid (dino.di_uid);
+ if (pw)
printf ("%s ", pw->pw_name);
else
printf ("%lu ", dino.di_uid);