summaryrefslogtreecommitdiff
path: root/isofs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-08 10:08:04 +0000
committerRoland McGrath <roland@gnu.org>2002-05-08 10:08:04 +0000
commite8251cc2c24d349c84b5a437094faa0f520e782c (patch)
treea90e19c12566228c2626282fe12f69a484d69ea6 /isofs
parent515787ee255cca0a073ecb83e0f6df04e26fddd3 (diff)
2002-05-08 Roland McGrath <roland@frob.com>
* rr.c (rrip_work): Cast pointer to uintptr_t instead of int.
Diffstat (limited to 'isofs')
-rw-r--r--isofs/rr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/isofs/rr.c b/isofs/rr.c
index 05c4e051..f26d9e42 100644
--- a/isofs/rr.c
+++ b/isofs/rr.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1997,99,2002 Free Software Foundation, Inc.
Written by Thomas Bushnell, n/BSG.
This file is part of the GNU Hurd.
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
+#include <stdint.h>
#include "isofs.h"
/* These tell whether the specified extensions are on or not. */
@@ -94,7 +95,7 @@ rrip_work (struct dirrect *dr, struct rrip_lookup *rr,
/* Set C to the system use area. */
c = p->name + p->namelen;
- if ((int)c & 1)
+ if ((uintptr_t)c & 1)
c++;
/* There needs to be an SUSP SP field right here; make sure there is */
@@ -113,7 +114,7 @@ rrip_work (struct dirrect *dr, struct rrip_lookup *rr,
{
/* It's in the normal place. */
bp = dr->name + dr->namelen;
- if ((int) bp & 1)
+ if ((uintptr_t) bp & 1)
bp++; /* must be even */
bp += susp_skip; /* skip to start of susp area */
terminus = (char *) dr + dr->len;