summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-23 21:48:23 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-23 21:48:23 +0000
commit9979ccfd1c511cdd73580c9c2926e957850e792d (patch)
tree741517fb7e76f959473a74ea7c216024b446dc55
parentb37af15ec8be515a69b34a48c1acb8434adb5324 (diff)
Formerly diskfs.h.~38~
-rw-r--r--libdiskfs/diskfs.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index b0f4c653..0c3d3143 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -18,6 +18,8 @@
#ifndef _HURD_DISKFS
#define _HURD_DISKFS
+#include <assert.h>
+
/* Each user port referring to a file points to one of these
(with the aid of the ports library. */
struct protid
@@ -523,8 +525,6 @@ diskfs_nref (struct node *np)
extern inline void
diskfs_nput (struct node *np)
{
- int nlinks;
-
spin_lock (&diskfs_node_refcnt_lock);
assert (np->references);
np->references--;
@@ -550,8 +550,6 @@ diskfs_nput (struct node *np)
extern inline void
diskfs_nrele (struct node *np)
{
- int nlinks;
-
spin_lock (&diskfs_node_refcnt_lock);
assert (np->references);
np->references--;