Clean up code in preparation for using gcc warnings.

This commit is contained in:
Kees van Reeuwijk
2010-03-10 13:19:27 +00:00
parent 0937d6c367
commit 5df6b80093
19 changed files with 22 additions and 44 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ PUBLIC int sys_whoami(endpoint_t *who_ep, char *who_name, int len)
if((r = _kernel_call(SYS_GETINFO, &m)) != OK)
return r;
lenmin = MIN(len, sizeof(m.GIWHO_NAME)) - 1;
lenmin = MIN((size_t) len, sizeof(m.GIWHO_NAME)) - 1;
strncpy(who_name, m.GIWHO_NAME, lenmin);
who_name[lenmin] = '\0';