# HG changeset patch # User cannam # Date 1326718656 0 # Mon Jan 16 12:57:36 2012 +0000 # Branch wmx # Node ID 7e4ef33dfb8ee6ef62a382cbe681801a27522bbb # Parent ecbbd1789f976d9224b936e8196ac6405a14b2e0 consts diff --git a/Rotated.C b/Rotated.C --- a/Rotated.C +++ b/Rotated.C @@ -34,8 +34,8 @@ int xv_errno; -static char *my_strdup(char *); -static char *my_strtok(char *, char *); +static char *my_strdup(const char *); +static char *my_strtok(char *, const char *); /* ---------------------------------------------------------------------- */ @@ -43,7 +43,7 @@ /* *** Routine to mimic `strdup()' (some machines don't have it) *** */ -static char *my_strdup(char *str) +static char *my_strdup(const char *str) { char *s; @@ -67,7 +67,7 @@ /* *** Routine to replace `strtok' : this one returns a zero length string if it encounters two consecutive delimiters *** */ -static char *my_strtok(char *str1, char *str2) +static char *my_strtok(char *str1, const char *str2) { char *ret; int i, j, stop;