From 11290355c9454c575d56c7928a725fd95e88d6f8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 29 Sep 1995 17:19:16 +0000 Subject: all targets compile .. tony's patches in place --- tools/build/src/unhex.c | 2 +- tools/build/unhex.c | 2 +- tools/cpu/hppa1.1/genoffsets.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/build/src/unhex.c b/tools/build/src/unhex.c index 540095d6f4..f149449302 100644 --- a/tools/build/src/unhex.c +++ b/tools/build/src/unhex.c @@ -86,7 +86,7 @@ void error(int errn, ...); #define ERR_ABORT (ERR_ERRNO / 4) /* error is fatal; abort */ #define ERR_MASK (ERR_ERRNO | ERR_FATAL | ERR_ABORT) /* all */ -#define stol(p) strtol(p, (char **) NULL, 0) +#define stol(p) strtoul(p, (char **) NULL, 0) int unhex(FILE *ifp, char *inm, FILE *ofp, char *onm); int convert_Intel_records(FILE *ifp, char *inm, FILE *ofp, char *onm); diff --git a/tools/build/unhex.c b/tools/build/unhex.c index 540095d6f4..f149449302 100644 --- a/tools/build/unhex.c +++ b/tools/build/unhex.c @@ -86,7 +86,7 @@ void error(int errn, ...); #define ERR_ABORT (ERR_ERRNO / 4) /* error is fatal; abort */ #define ERR_MASK (ERR_ERRNO | ERR_FATAL | ERR_ABORT) /* all */ -#define stol(p) strtol(p, (char **) NULL, 0) +#define stol(p) strtoul(p, (char **) NULL, 0) int unhex(FILE *ifp, char *inm, FILE *ofp, char *onm); int convert_Intel_records(FILE *ifp, char *inm, FILE *ofp, char *onm); diff --git a/tools/cpu/hppa1.1/genoffsets.c b/tools/cpu/hppa1.1/genoffsets.c index 78ae74b4ec..3bec8e954b 100644 --- a/tools/cpu/hppa1.1/genoffsets.c +++ b/tools/cpu/hppa1.1/genoffsets.c @@ -1,5 +1,5 @@ /* - * @(#)genoffsets.c 1.5 - 95/05/16 + * @(#)genoffsets.c 1.7 - 95/09/25 * * * genoffsets.c @@ -82,7 +82,7 @@ printf( "\n" \ ); -#if defined(hpux) && defined(__hppa__) +#if defined(__hpux__) && defined(__hppa__) /* * Offsets of elements in the Context_control structure. -- cgit v1.2.3