summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-03-17 22:00:50 +0000
committerThomas Bushnell <thomas@gnu.org>1999-03-17 22:00:50 +0000
commitd310598995d7969d1cc6e5e14ff6d6ab16297ced (patch)
tree478c2848e668fa4eff2d3fddcea17e7e73dbba02
parentea53213e0640c0c41a4deac2d58823d5404dcaf4 (diff)
Tue Mar 16 17:20:06 1999 Thomas Bushnell, BSG <tb@mit.edu>
* lookup.c (diskfs_lookup): Reformat for prettiness.
-rw-r--r--libdiskfs/ChangeLog4
-rw-r--r--libdiskfs/lookup.c10
2 files changed, 10 insertions, 4 deletions
diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog
index e74b00ad..8689baa7 100644
--- a/libdiskfs/ChangeLog
+++ b/libdiskfs/ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 16 17:20:06 1999 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * lookup.c (diskfs_lookup): Reformat for prettiness.
+
1999-02-28 Roland McGrath <roland@baalperazim.frob.com>
* io-revoke.c (diskfs_S_io_revoke): Use ports_class_iterate.
diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c
index cd5ca8cb..2dd75a92 100644
--- a/libdiskfs/lookup.c
+++ b/libdiskfs/lookup.c
@@ -1,5 +1,5 @@
/* Wrapper for diskfs_lookup_hard
- Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -175,9 +175,11 @@ diskfs_lookup (struct node *dp, const char *name, enum lookup_type type,
|| (type == CREATE && err == ENOENT)
|| (type == REMOVE && err != ENOENT))
{
- error_t err2 = fshelp_checkdirmod (&dp->dn_stat,
- (err || !np) ? 0 : &(*np)->dn_stat,
- cred->user);
+ error_t err2;
+
+ err2 = fshelp_checkdirmod (&dp->dn_stat,
+ (err || !np) ? 0 : &(*np)->dn_stat,
+ cred->user);
if (err2)
{
if (np && !err)