summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-05-01 10:07:55 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-02 15:46:51 +0000
commitb7787f18a4d9a5b6205453133731406d627268af (patch)
treee3c1f3ea3b6da55ec9b061bcd3d168147cdcac30 /x2p
parent2728842dc82a9f71891d065b28cf34767a63fb0c (diff)
downloadperl-b7787f18a4d9a5b6205453133731406d627268af.tar.gz
printf.patch: Adding printf checking for gcc
Message-ID: <20050501200755.GA30259@petdance.com> p4raw-id: //depot/perl@24365
Diffstat (limited to 'x2p')
-rw-r--r--x2p/util.c6
-rw-r--r--x2p/util.h9
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);