summaryrefslogtreecommitdiffstats
path: root/sys/kern/link_aout.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-15 02:32:35 +0000
committerbde <bde@FreeBSD.org>1998-07-15 02:32:35 +0000
commit863d5c8b6850a65e8b4e00a7b23bbd29bd466602 (patch)
tree503589837ac05f783d5305211b0f41aed97e2041 /sys/kern/link_aout.c
parentb99f2f9d598baa39c296f1cf2d910a1f7e138bb1 (diff)
downloadFreeBSD-src-863d5c8b6850a65e8b4e00a7b23bbd29bd466602.zip
FreeBSD-src-863d5c8b6850a65e8b4e00a7b23bbd29bd466602.tar.gz
Cast pointers to uintptr_t/intptr_t instead of to u_long/long,
respectively. Most of the longs should probably have been u_longs, but this changes is just to prevent warnings about casts between pointers and integers of different sizes, not to fix poorly chosen types.
Diffstat (limited to 'sys/kern/link_aout.c')
-rw-r--r--sys/kern/link_aout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/link_aout.c b/sys/kern/link_aout.c
index 3bbd072..4126ae1 100644
--- a/sys/kern/link_aout.c
+++ b/sys/kern/link_aout.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: link_aout.c,v 1.6 1998/06/07 17:11:36 dfr Exp $
+ * $Id: link_aout.c,v 1.7 1998/07/07 04:31:27 bde Exp $
*/
#include <sys/param.h>
@@ -325,7 +325,7 @@ relocate_file(linker_file_t lf)
printf("link_aout: bad symbol name %s\n", sym);
relocation = 0;
} else
- relocation = (long)
+ relocation = (intptr_t)
linker_file_lookup_symbol(lf, sym + 1,
np->nz_type != (N_SETV+N_EXT));
if (!relocation) {
@@ -341,7 +341,7 @@ relocate_file(linker_file_t lf)
}
if (r->r_pcrel)
- relocation -= (long) af->address;
+ relocation -= (intptr_t) af->address;
if (r->r_copy) {
printf("link_aout: can't cope with copy relocations\n");
@@ -351,7 +351,7 @@ relocate_file(linker_file_t lf)
write_relocation(r, addr, relocation);
} else {
write_relocation(r, addr,
- (long)(read_relocation(r, addr) + af->address));
+ (intptr_t)(read_relocation(r, addr) + af->address));
}
}
OpenPOWER on IntegriCloud