diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-02-04 21:35:20 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-02-04 21:35:20 +0000 |
commit | 3fd7d7d1196d723a86e44ac4fc00f4b54abcd5c3 (patch) | |
tree | bf027850acb6e897902af0d7a4b2437352bba33b /libdiskfs | |
parent | 5aba673e0bca5117202d8030b8ae8351379a32d4 (diff) |
Formerly node-make.c.~3~
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/node-make.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/node-make.c b/libdiskfs/node-make.c index add430c3..1159357b 100644 --- a/libdiskfs/node-make.c +++ b/libdiskfs/node-make.c @@ -16,6 +16,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "priv.h" +#include <fcntl.h> /* Create a and return new node structure with DN as its physical disknode. @@ -23,7 +24,7 @@ struct node * diskfs_make_node (struct disknode *dn) { - struce node *np = malloc (sizeof (struct node)); + struct node *np = malloc (sizeof (struct node)); np->dn = dn; np->dn_set_ctime = 0; @@ -41,7 +42,6 @@ diskfs_make_node (struct disknode *dn) condition_init (&np->flockwait); np->needflock = 0; np->shlock_count = 0; - - diskfs_set_stat (np->dn, &np->dn_stat); + return np; } |