Lots of const correctness.

This commit is contained in:
Kees van Reeuwijk
2010-03-27 14:31:00 +00:00
parent 9192dbecc9
commit 98493805fd
41 changed files with 180 additions and 182 deletions

View File

@@ -38,7 +38,8 @@ runqueues_ok(void)
return 0;
}
for(xp = rdy_head[q]; xp != NIL_PROC; xp = xp->p_nextready) {
vir_bytes vxp = (vir_bytes) xp, dxp;
const vir_bytes vxp = (vir_bytes) xp;
vir_bytes dxp;
if(vxp < (vir_bytes) BEG_PROC_ADDR || vxp >= (vir_bytes) END_PROC_ADDR) {
printf("xp out of range\n");
return 0;
@@ -108,7 +109,7 @@ runqueues_ok(void)
}
PUBLIC char *
rtsflagstr(int flags)
rtsflagstr(const int flags)
{
static char str[100];
str[0] = '\0';
@@ -135,7 +136,7 @@ rtsflagstr(int flags)
}
PUBLIC char *
miscflagstr(int flags)
miscflagstr(const int flags)
{
static char str[100];
str[0] = '\0';