summaryrefslogtreecommitdiff
path: root/libdiskfs/diskfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/diskfs.h')
-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--;