Cosmetic: warnings fixed when 'gettext' returns 'const' value
authorshort <>
Thu, 19 Apr 2001 17:39:17 +0000 (17:39 +0000)
committershort <>
Thu, 19 Apr 2001 17:39:17 +0000 (17:39 +0000)
mdsms.c

diff --git a/mdsms.c b/mdsms.c
index 711aee3..59f9bd9 100644 (file)
--- a/mdsms.c
+++ b/mdsms.c
@@ -866,7 +866,7 @@ static const char *record,*recordend;
 static char *catchdata;
 static size_t catchdatal,catchdatasiz;
 
-static char *reform(const char *s,int slot);
+static const char *reform(const char *s,int slot);
 static void catched(const char *end,char edata)
 {
 size_t len;
@@ -896,7 +896,7 @@ static void retrying(void)
        if (verbose>=2) error(_(".Retrying phase, %d out of %ld.."),retrycnt,maxretryn);
 }
 
-static char *reform(const char *s,int slot)
+static const char *reform(const char *s,int slot)
 {
 static struct formslot {
        char *s;
@@ -1514,8 +1514,8 @@ retry:
 static char *check_format(const char *fmt,const char *string)
 {
 static char err[LINE_MAX],sub[50];
-char *subp,cf,cs;
-const char *sf,*ss;
+char cf,cs;
+const char *sf,*ss,*subp;
 
        for (sf=fmt,ss=string;(cf=*sf) && (cs=*ss);sf++,ss++) {
                subp=NULL;