Index: uspace/lib/c/generic/time.c
===================================================================
--- uspace/lib/c/generic/time.c	(revision cde999aca79219e8751af76502001a86d411d176)
+++ uspace/lib/c/generic/time.c	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -585,5 +585,5 @@
 	if (clock_conn == NULL) {
 		category_id_t cat_id;
-		int rc = loc_category_get_id("clock", &cat_id, IPC_FLAG_BLOCKING);
+		errno_t rc = loc_category_get_id("clock", &cat_id, IPC_FLAG_BLOCKING);
 		if (rc != EOK)
 			goto fallback;
@@ -617,5 +617,5 @@
 	
 	struct tm time;
-	int rc = clock_dev_time_get(clock_conn, &time);
+	errno_t rc = clock_dev_time_get(clock_conn, &time);
 	if (rc != EOK)
 		goto fallback;
@@ -634,5 +634,5 @@
 	if (ktime == NULL) {
 		uintptr_t faddr;
-		int rc = sysinfo_get_value("clock.faddr", &faddr);
+		errno_t rc = sysinfo_get_value("clock.faddr", &faddr);
 		if (rc != EOK) {
 			errno = rc;
@@ -957,5 +957,5 @@
  *
  */
-int time_utc2tm(const time_t time, struct tm *restrict result)
+errno_t time_utc2tm(const time_t time, struct tm *restrict result)
 {
 	assert(result != NULL);
@@ -987,8 +987,8 @@
  *
  */
-int time_utc2str(const time_t time, char *restrict buf)
+errno_t time_utc2str(const time_t time, char *restrict buf)
 {
 	struct tm tm;
-	int ret = time_utc2tm(time, &tm);
+	errno_t ret = time_utc2tm(time, &tm);
 	if (ret != EOK)
 		return ret;
@@ -1039,5 +1039,5 @@
  *
  */
-int time_tv2tm(const struct timeval *tv, struct tm *restrict result)
+errno_t time_tv2tm(const struct timeval *tv, struct tm *restrict result)
 {
 	// TODO: Deal with timezones.
@@ -1069,5 +1069,5 @@
  *
  */
-int time_local2tm(const time_t time, struct tm *restrict result)
+errno_t time_local2tm(const time_t time, struct tm *restrict result)
 {
 	struct timeval tv = {
@@ -1091,8 +1091,8 @@
  *
  */
-int time_local2str(const time_t time, char *buf)
+errno_t time_local2str(const time_t time, char *buf)
 {
 	struct tm loctime;
-	int ret = time_local2tm(time, &loctime);
+	errno_t ret = time_local2tm(time, &loctime);
 	if (ret != EOK)
 		return ret;
