Index: uspace/app/bdsh/cmds/modules/cp/cp.c
===================================================================
--- uspace/app/bdsh/cmds/modules/cp/cp.c	(revision 415c7e0dffd9a61936ae7ae8ebcb40e5f19f768a)
+++ uspace/app/bdsh/cmds/modules/cp/cp.c	(revision 19490cea4251de33ed19741087be0c03ff4d2a4f)
@@ -173,5 +173,6 @@
 int cmd_cp(char **argv)
 {
-	unsigned int argc, buffer = 0, verbose = 0;
+	unsigned int argc, verbose = 0;
+	int buffer = 0;
 	int c, opt_ind;
 	int64_t ret;
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 19490cea4251de33ed19741087be0c03ff4d2a4f)
@@ -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 19490cea4251de33ed19741087be0c03ff4d2a4f)
@@ -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 *);
Index: uspace/app/bdsh/cmds/modules/rm/rm.c
===================================================================
--- uspace/app/bdsh/cmds/modules/rm/rm.c	(revision 415c7e0dffd9a61936ae7ae8ebcb40e5f19f768a)
+++ uspace/app/bdsh/cmds/modules/rm/rm.c	(revision 19490cea4251de33ed19741087be0c03ff4d2a4f)
@@ -210,5 +210,5 @@
 	}
 
-	if (optind == argc) {
+	if ((unsigned) optind == argc) {
 		cli_error(CL_EFAIL,
 			"%s: insufficient arguments. Try %s --help", cmdname, cmdname);
