Index: uspace/app/bdsh/cmds/modules/ls/ls.c
===================================================================
--- uspace/app/bdsh/cmds/modules/ls/ls.c	(revision 415c7e0dffd9a61936ae7ae8ebcb40e5f19f768a)
+++ uspace/app/bdsh/cmds/modules/ls/ls.c	(revision 9732e98d6638fbe3f59b52d0c3bfad4e8aa965ec)
@@ -90,5 +90,6 @@
 	int rc;
 
-	if (rc = stat(pathname, &s)) {
+	rc = stat(pathname, &s);
+	if (rc != 0) {
 		/* Odd chance it was deleted from the time readdir() found it */
 		printf("ls: skipping bogus node %s\n", pathname);
Index: uspace/app/bdsh/cmds/modules/ls/ls.h
===================================================================
--- uspace/app/bdsh/cmds/modules/ls/ls.h	(revision 415c7e0dffd9a61936ae7ae8ebcb40e5f19f768a)
+++ uspace/app/bdsh/cmds/modules/ls/ls.h	(revision 9732e98d6638fbe3f59b52d0c3bfad4e8aa965ec)
@@ -7,6 +7,4 @@
 #define LS_DIR   2
 
-
-static unsigned int ls_scope(const char *);
 static void ls_scan_dir(const char *, DIR *);
 static void ls_print(const char *, const char *);
