Index: uspace/srv/fs/tmpfs/tmpfs.h
===================================================================
--- uspace/srv/fs/tmpfs/tmpfs.h	(revision 57b4f469e7b99aef70031cf3f2d0a09930de3f2d)
+++ uspace/srv/fs/tmpfs/tmpfs.h	(revision ade06b4c6b1118231604a69b35e9c83ac1008759)
@@ -45,4 +45,10 @@
 #endif
 
+typedef enum {
+	TMPFS_NONE,
+	TMPFS_FILE,
+	TMPFS_DIRECTORY
+} tmpfs_dentry_type_t;
+
 typedef struct tmpfs_dentry {
 	fs_index_t index;	/**< TMPFS node index. */
@@ -51,9 +57,5 @@
 	struct tmpfs_dentry *child;
 	hash_table_t names;	/**< All names linking to this TMPFS node. */ 
-	enum {
-		TMPFS_NONE,
-		TMPFS_FILE,
-		TMPFS_DIRECTORY
-	} type;
+	tmpfs_dentry_type_t type;
 	unsigned lnkcnt;	/**< Link count. */
 	size_t size;		/**< File size if type is TMPFS_FILE. */
Index: uspace/srv/fs/tmpfs/tmpfs_dump.c
===================================================================
--- uspace/srv/fs/tmpfs/tmpfs_dump.c	(revision 57b4f469e7b99aef70031cf3f2d0a09930de3f2d)
+++ uspace/srv/fs/tmpfs/tmpfs_dump.c	(revision ade06b4c6b1118231604a69b35e9c83ac1008759)
@@ -118,7 +118,7 @@
 		
 		switch (entry.type) {
-		case 0:
+		case TMPFS_NONE:
 			break;
-		case 1:
+		case TMPFS_FILE:
 			fname = malloc(entry.len + 1);
 			if (fname == NULL)
@@ -162,5 +162,5 @@
 			
 			break;
-		case 2:
+		case TMPFS_DIRECTORY:
 			fname = malloc(entry.len + 1);
 			if (fname == NULL)
@@ -196,5 +196,5 @@
 			return false;
 		}
-	} while (entry.type != 0);
+	} while (entry.type != TMPFS_NONE);
 	
 	return true;
