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 */