Changed cookie type for get_next_area_info() to ssize_t.

The cookie is used to store the base address of the area that was just
visited. On 64-bit systems, int32 is not sufficient. Therefore, changed
to ssize_t which retains compatibility on x86 while expanding to a
sufficient size on x86_64.
This commit is contained in:
Alex Smith
2012-07-29 09:31:14 +01:00
parent 12b3e8a8a0
commit 6e2f6d1ace
10 changed files with 21 additions and 20 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ RemoteMemoryAccessor::Init()
// get a list of the team's areas
area_info areaInfo;
int32 cookie = 0;
ssize_t cookie = 0;
status_t error;
while ((error = get_next_area_info(fTeam, &cookie, &areaInfo)) == B_OK) {
TRACE(("area %ld: address: %p, size: %ld, name: %s\n", areaInfo.area,