summaryrefslogtreecommitdiff
path: root/pith/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'pith/osdep')
-rw-r--r--pith/osdep/collate.c8
-rw-r--r--pith/osdep/collate.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/pith/osdep/collate.c b/pith/osdep/collate.c
index e8a90d21..1481d280 100644
--- a/pith/osdep/collate.c
+++ b/pith/osdep/collate.c
@@ -20,13 +20,13 @@
/*
* global hook
*/
-int (*pcollator)();
+int (*pcollator)(const char *, const char *);
void
set_collation(int collation, int ctype)
{
- extern int collator(); /* set to strcoll if available in system.h */
+ extern int collator(const char *, const char *); /* set to strcoll if available in system.h */
pcollator = strucmp;
@@ -90,7 +90,7 @@ sstrcasecmp(const qsort_t *s1, const qsort_t *s2)
Result: integer indicating which is greater
---*/
int
-strucmp(register char *o, register char *r)
+strucmp(const char *o, const char *r)
{
if(o == NULL){
if(r == NULL)
@@ -130,7 +130,7 @@ strucmp(register char *o, register char *r)
----*/
int
-struncmp(register char *o, register char *r, register int n)
+struncmp(const char *o, const char *r, int n)
{
if(n < 1)
return 0;
diff --git a/pith/osdep/collate.h b/pith/osdep/collate.h
index 182d0fde..e9051691 100644
--- a/pith/osdep/collate.h
+++ b/pith/osdep/collate.h
@@ -22,11 +22,11 @@
* Exported Prototypes
*/
void set_collation(int, int);
-int strucmp(char *, char *);
-int struncmp(char *, char *, int);
+int strucmp(const char *, const char *);
+int struncmp(const char *, const char *, int);
int sstrcasecmp(const qsort_t *, const qsort_t *);
-extern int (*pcollator)();
+extern int (*pcollator)(const char*, const char *);
#endif /* PITH_OSDEP_COLLATE_INCLUDED */