From: Alan Cox Date: Wed, 15 Apr 2015 11:44:25 +0000 (+0100) Subject: consts: Fix other consts X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=fed503c0a8ebfa833272c0f6357a0f81342955ec;p=FUZIX.git consts: Fix other consts Originally from Tormod Volden but I had to fix the DOS mangling of some of the files to apply them --- diff --git a/Library/include/regexp.h b/Library/include/regexp.h index eaf427c8..9882e3dc 100644 --- a/Library/include/regexp.h +++ b/Library/include/regexp.h @@ -22,6 +22,6 @@ typedef struct regexp { extern regexp *regcomp(char *); extern int regexec(regexp *__prog, char *__string); extern void regsub(regexp *__prog, char *__source, char *__dest); -extern void regerror(char *); +extern void regerror(const char *); #endif diff --git a/Library/libs/atoi.c b/Library/libs/atoi.c index 6bd9e090..ce2f7f83 100644 --- a/Library/libs/atoi.c +++ b/Library/libs/atoi.c @@ -1,11 +1,10 @@ -/* numeric/string conversions package - */ - -#include - -/**************************** atoi.c ****************************/ -int atoi(char *str) +/* numeric/string conversions package + */ + +#include + +/**************************** atoi.c ****************************/ +int atoi(const char *str) { return (int) strtol(str, NULL, 10); -} - +}