consts: Fix other consts
authorAlan Cox <alan@linux.intel.com>
Wed, 15 Apr 2015 11:44:25 +0000 (12:44 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 15 Apr 2015 11:44:25 +0000 (12:44 +0100)
Originally from Tormod Volden but I had to fix the DOS mangling of some
of the files to apply them

Library/include/regexp.h
Library/libs/atoi.c

index eaf427c..9882e3d 100644 (file)
@@ -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
index 6bd9e09..ce2f7f8 100644 (file)
@@ -1,11 +1,10 @@
-/* numeric/string conversions package\r
- */  \r
-    \r
-#include <stdlib.h>\r
-    \r
-/**************************** atoi.c ****************************/ \r
-int atoi(char *str) \r
+/* numeric/string conversions package
+ */
+
+#include <stdlib.h>
+
+/**************************** atoi.c ****************************/
+int atoi(const char *str)
 {
        return (int) strtol(str, NULL, 10);
-}\r
\r
+}