diff options
Diffstat (limited to 'x2p')
-rw-r--r-- | x2p/util.c | 6 | ||||
-rw-r--r-- | x2p/util.h | 9 |
2 files changed, 6 insertions, 9 deletions
diff --git a/x2p/util.c b/x2p/util.c index 5759c5b98d..20444decfc 100644 --- a/x2p/util.c +++ b/x2p/util.c @@ -177,7 +177,7 @@ growstr(char **strptr, int *curlen, int newlen) } void -croak(char *pat,...) +croak(const char *pat,...) { #if defined(HAS_VPRINTF) va_list args; @@ -192,7 +192,7 @@ croak(char *pat,...) } void -fatal(char *pat,...) +fatal(const char *pat,...) { #if defined(HAS_VPRINTF) va_list args; @@ -210,7 +210,7 @@ fatal(char *pat,...) __private_extern__ /* warn() conflicts with libc */ #endif void -warn(char *pat,...) +warn(const char *pat,...) { #if defined(HAS_VPRINTF) va_list args; diff --git a/x2p/util.h b/x2p/util.h index e76a6120a0..8ca913b9a7 100644 --- a/x2p/util.h +++ b/x2p/util.h @@ -20,18 +20,15 @@ int eaccess(); #endif -char *getwd(); -int makedir(); - char * cpy2 ( char *to, char *from, int delim ); char * cpytill ( char *to, char *from, int delim ); void growstr ( char **strptr, int *curlen, int newlen ); char * instr ( char *big, char *little ); char * safecpy ( char *to, char *from, int len ); char * savestr ( char *str ); -void croak ( char *pat, ... ); -void fatal ( char *pat, ... ); -void warn ( char *pat, ... ); +void croak ( const char *pat, ... ); +void fatal ( const char *pat, ... ); +void warn ( const char *pat, ... ); int prewalk ( int numit, int level, int node, int *numericptr ); Malloc_t safemalloc (MEM_SIZE nbytes); |