From dcc0fe91a2fbff3c4b41bd563e4d3c0b5d5deebb Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 14 Aug 2000 22:16:40 +0000 Subject: [PATCH] Several type qualifier fixes git-svn-id: svn://svn.cc65.org/cc65/trunk@283 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/_printf.h | 2 +- libsrc/common/locale.c | 4 ++-- libsrc/common/vcprintf.c | 2 +- libsrc/common/vfprintf.c | 4 ++-- libsrc/common/vsprintf.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libsrc/common/_printf.h b/libsrc/common/_printf.h index 6ce43439a..aa5802f03 100644 --- a/libsrc/common/_printf.h +++ b/libsrc/common/_printf.h @@ -16,7 +16,7 @@ struct outdesc; /* Type of the function that is called to output data */ -typedef void (*outfunc) (struct outdesc* desc, char* buf, unsigned count); +typedef void (*outfunc) (struct outdesc* desc, const char* buf, unsigned count); diff --git a/libsrc/common/locale.c b/libsrc/common/locale.c index 5c084a2d0..efb055cb5 100644 --- a/libsrc/common/locale.c +++ b/libsrc/common/locale.c @@ -18,9 +18,9 @@ /* For memory efficiency use a separate empty string */ -static const char EmptyString [] = ""; +static char EmptyString [] = ""; -static const struct lconv lc = { +static struct lconv lc = { EmptyString, /* currency_symbol */ ".", /* decimal_point */ EmptyString, /* grouping */ diff --git a/libsrc/common/vcprintf.c b/libsrc/common/vcprintf.c index 4b54cdbdc..64d0e5c96 100644 --- a/libsrc/common/vcprintf.c +++ b/libsrc/common/vcprintf.c @@ -12,7 +12,7 @@ -static void out (struct outdesc* d, char* buf, unsigned count) +static void out (struct outdesc* d, const char* buf, unsigned count) /* Routine used for writing */ { /* Fast screen output */ diff --git a/libsrc/common/vfprintf.c b/libsrc/common/vfprintf.c index f33c9c47e..17596b5d2 100644 --- a/libsrc/common/vfprintf.c +++ b/libsrc/common/vfprintf.c @@ -12,7 +12,7 @@ -static void out (struct outdesc* d, char* buf, unsigned count) +static void out (struct outdesc* d, const char* buf, unsigned count) /* Routine used for writing */ { /* Write to the file */ @@ -42,4 +42,4 @@ int vfprintf (FILE* f, const char* format, va_list ap) - + diff --git a/libsrc/common/vsprintf.c b/libsrc/common/vsprintf.c index 9b55da9c0..6c892d94b 100644 --- a/libsrc/common/vsprintf.c +++ b/libsrc/common/vsprintf.c @@ -12,7 +12,7 @@ -static void out (struct outdesc* d, char* buf, unsigned count) +static void out (struct outdesc* d, const char* buf, unsigned count) /* Routine used for writing */ { /* String - be shure to check the size */ -- 2.39.5