Index: uspace/app/tester/devs/devman2.c
===================================================================
--- uspace/app/tester/devs/devman2.c	(revision 5d1b3aa2ae833977640704ed7cf0ed0ad531bb41)
+++ uspace/app/tester/devs/devman2.c	(revision 2e8a01b2cebc9fc49dcf219d055df8f0f2265a08)
@@ -42,5 +42,7 @@
 #include <devman.h>
 #include <str.h>
+#include <async.h>
 #include <vfs/vfs.h>
+#include <vfs/vfs_sess.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -68,13 +70,13 @@
 			continue;
 		}
-		int phone = fd_phone(fd);
+		async_sess_t *sess = fd_session(EXCHANGE_SERIALIZE, fd);
 		close(fd);
-		if (phone < 0) {
-			TPRINTF("Failed opening phone: %s.\n", str_error(phone));
-			rc = phone;
+		if (sess == NULL) {
+			TPRINTF("Failed opening phone: %s.\n", str_error(errno));
+			rc = errno;
 			err_msg = "Failed opening file descriptor phone";
 			continue;
 		}
-		async_hangup(phone);
+		async_hangup(sess);
 		TPRINTF("Path `%s' okay.\n", path);
 		free(path);
@@ -83,8 +85,7 @@
 	}
 	
-	if (path != NULL) {
+	if (path != NULL)
 		free(path);
-	}
-
+	
 	return err_msg;
 }
