Index: uspace/app/date/date.c
===================================================================
--- uspace/app/date/date.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
+++ uspace/app/date/date.c	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -39,7 +39,7 @@
 #define NAME   "date"
 
-static int read_date_from_arg(char *wdate, struct tm *t);
-static int read_time_from_arg(char *wdate, struct tm *t);
-static int tm_sanity_check(struct tm *t);
+static errno_t read_date_from_arg(char *wdate, struct tm *t);
+static errno_t read_time_from_arg(char *wdate, struct tm *t);
+static errno_t tm_sanity_check(struct tm *t);
 static bool is_leap_year(int year);
 
@@ -51,5 +51,5 @@
 main(int argc, char **argv)
 {
-	int rc;
+	errno_t rc;
 	int c;
 	category_id_t cat_id;
@@ -197,8 +197,8 @@
  *  with the following format: DD/MM/YYYY
  */
-static int
+static errno_t
 read_date_from_arg(char *wdate, struct tm *t)
 {
-	int rc;
+	errno_t rc;
 	uint32_t tmp;
 
@@ -232,8 +232,8 @@
  *  with the following format: HH:MM:SS or HH:MM
  */
-static int
+static errno_t
 read_time_from_arg(char *wtime, struct tm *t)
 {
-	int rc;
+	errno_t rc;
 	size_t len = str_size(wtime);
 	bool sec_present = len == 8;
@@ -278,5 +278,5 @@
  * @return      EOK on success or EINVAL
  */
-static int
+static errno_t
 tm_sanity_check(struct tm *t)
 {
