Index: uspace/app/bdsh/util.c
===================================================================
--- uspace/app/bdsh/util.c	(revision 4470e2627030413dc38c0d3b98d9c6a3e1672564)
+++ uspace/app/bdsh/util.c	(revision e436cfe9b50c598a89bfda4cbff4090ec65967a4)
@@ -76,5 +76,5 @@
  * Return -1 on failure, or the length of the copied string on success.
  */
-int cli_redup(char **s1, const char *s2)
+size_t cli_redup(char **s1, const char *s2)
 {
 	size_t len = strlen(s2) + 1;
@@ -93,5 +93,5 @@
 	memcpy(*s1, s2, len);
 	cli_errno = CL_EOK;
-	return (int) len;
+	return len;
 }
 
Index: uspace/app/bdsh/util.h
===================================================================
--- uspace/app/bdsh/util.h	(revision 4470e2627030413dc38c0d3b98d9c6a3e1672564)
+++ uspace/app/bdsh/util.h	(revision e436cfe9b50c598a89bfda4cbff4090ec65967a4)
@@ -6,5 +6,5 @@
 /* Internal string handlers */
 extern char * cli_strdup(const char *);
-extern int cli_redup(char **, const char *);
+extern size_t cli_redup(char **, const char *);
 extern int cli_psprintf(char **, const char *, ...);
 extern char * cli_strtok_r(char *, const char *, char **);
