diff --git a/kernel/pid.c b/kernel/pid.c
index 0a45de2918e293a6c791c8e00b6d0a7226613870..373639a10d8456dce5998d8c6f949569edb1abcb 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -148,7 +148,7 @@ static int alloc_pidmap(void)
 static int next_pidmap(int last)
 {
 	int offset;
-	pidmap_t *map;
+	struct pidmap *map;
 
 	offset = (last + 1) & BITS_PER_PAGE_MASK;
 	map = &pidmap_array[(last + 1)/BITS_PER_PAGE];