const work

SCCS-file: scheck.c
SCCS-SID: 8.9
This commit is contained in:
Arthur David Olson
2012-07-18 03:01:52 -04:00
committed by Paul Eggert
parent e497d6ef0f
commit a4a44dc22f
+3 -3
View File
@@ -17,8 +17,8 @@ extern void ifree P((char * p));
char *
scheck(string, format)
const char * string;
char * format;
const char * const string;
const char * const format;
{
register char * fbuf;
register const char * fp;
@@ -59,7 +59,7 @@ char * format;
*tp++ = 'c';
*tp = '\0';
if (sscanf(string, fbuf, &dummy) != 1)
result = format;
result = (char *) format;
ifree(fbuf);
return result;
}