]> Zhao Yanbai Git Server - minix.git/commitdiff
fix some compiler warnings.
authorBen Gras <ben@minix3.org>
Mon, 2 Apr 2007 15:10:07 +0000 (15:10 +0000)
committerBen Gras <ben@minix3.org>
Mon, 2 Apr 2007 15:10:07 +0000 (15:10 +0000)
lib/syslib/sys_fork.c
lib/syslib/sys_vsafecopy.c
lib/sysutil/kputc.c

index 3b5a5e01fd21e29083769b282db7e8333e75988c..fb0117d5fb596372821b7caf6935173e45d4fd99 100755 (executable)
@@ -13,7 +13,7 @@ struct mem_map *map_ptr;
 
   m.PR_ENDPT = parent;
   m.PR_SLOT = child;
-  m.PR_MEM_PTR = map_ptr;
+  m.PR_MEM_PTR = (char *) map_ptr;
   r = _taskcall(SYSTASK, SYS_FORK, &m);
   *child_endpoint = m.PR_ENDPT;
   return r;
index 343dd0f6debe23c8f50cec17a28d00332771b8a9..e89f19a5ead606d659c823e69615c3ef3c12fced 100644 (file)
@@ -9,7 +9,7 @@ PUBLIC int sys_vsafecopy(struct vscp_vec *vec, int els)
 
   message copy_mess;
 
-  copy_mess.VSCP_VEC_ADDR = vec;
+  copy_mess.VSCP_VEC_ADDR = (char *) vec;
   copy_mess.VSCP_VEC_SIZE = els;
 
   return(_taskcall(SYSTASK, SYS_VSAFECOPY, &copy_mess));
index 13226e3af04a3dd8ca1f59574d0549a8281ec606..47309b50eaee9a5bdd567753ad9325d8028248d8 100644 (file)
@@ -48,7 +48,8 @@ int c;
                 * print buffer forever. (So buffer can't be on stack!)
                 */
                for(p = 0; procs[p] != NONE; p++) {
-                       printgrants[p] = cpf_grant_direct(procs[p], print_buf,
+                       printgrants[p] = cpf_grant_direct(procs[p],
+                               (vir_bytes) print_buf,
                                sizeof(print_buf), CPF_READ);
                }
        }
@@ -58,7 +59,7 @@ int c;
                m.DIAG_BUF_COUNT = buf_count;
                if(GRANT_VALID(printgrants[p])) {
                        m.m_type = DIAGNOSTICS_S;
-                       m.DIAG_PRINT_BUF_G = printgrants[p];
+                       m.DIAG_PRINT_BUF_G = (char *) printgrants[p];
                } else {
                        m.m_type = DIAGNOSTICS;
                        m.DIAG_PRINT_BUF_G = print_buf;