From 7440a22f70617b62ce151faf5a8d8634dcdc7940 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 28 Apr 1995 07:20:08 +0000 Subject: [PATCH] Eliminate compiler warning. --- v7/src/microcode/os2env.c | 4 ++-- v7/src/microcode/os2xcpt.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/v7/src/microcode/os2env.c b/v7/src/microcode/os2env.c index b91308ac3..0f30053cc 100644 --- a/v7/src/microcode/os2env.c +++ b/v7/src/microcode/os2env.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: os2env.c,v 1.6 1995/04/28 07:04:58 cph Exp $ +$Id: os2env.c,v 1.7 1995/04/28 07:16:35 cph Exp $ Copyright (c) 1994-95 Massachusetts Institute of Technology @@ -303,5 +303,5 @@ OS_set_working_dir_pathname (const char * name) name += 2; length -= 2; } - STD_API_CALL (dos_set_current_dir, ((length == 0) ? "\\" : name)); + STD_API_CALL (dos_set_current_dir, ((length == 0) ? "\\" : ((char *) name))); } diff --git a/v7/src/microcode/os2xcpt.c b/v7/src/microcode/os2xcpt.c index 63ebbc636..92ea93103 100644 --- a/v7/src/microcode/os2xcpt.c +++ b/v7/src/microcode/os2xcpt.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: os2xcpt.c,v 1.3 1995/04/28 07:05:08 cph Exp $ +$Id: os2xcpt.c,v 1.4 1995/04/28 07:20:08 cph Exp $ Copyright (c) 1994-95 Massachusetts Institute of Technology @@ -985,12 +985,12 @@ OS2_subthread_exception_handler (PEXCEPTIONREPORTRECORD report, sprintf (backtrace, " (Backtrace:"); sprintf ((backtrace + (strlen (backtrace))), " 0x%08x", (context -> ctx_RegEip)); - while ((ebp > (ptib -> tib_pstack)) - && (ebp < (ptib -> tib_pstacklimit)) + while ((((char *) ebp) > ((char *) (ptib -> tib_pstack))) + && (((char *) ebp) < ((char *) (ptib -> tib_pstacklimit))) && (count < 10)) { sprintf ((backtrace + (strlen (backtrace))), " 0x%08x", (ebp[1])); - ebp = (ebp[0]); + ebp = ((ULONG *) (ebp[0])); } sprintf ((backtrace + (strlen (backtrace))), ")"); } -- 2.25.1