The computation of the return value for this function was relying on string
lengths that fitted in an `int`, something that is generally but not always
true. The compiler complained about this with -Wconversion. The only caller of
this function does not use the return value, so lets just remove it.
extern int strmatch(const char *, const char *);
extern int strgrpmatch(const char *, const char *, int *, int, int);
- extern int stresc(char *);
+ extern void stresc(char *);
extern char *strcopy(char *s, const char *t);
#ifdef __cplusplus
* AT&T Bell Laboratories
*
* convert \x character constants in s in place
- * the length of the converted s is returned (may have imbedded \0's)
*/
#include <ast/ast.h>
-int stresc(char *s)
+void stresc(char *s)
{
char *t;
int c;
- char *b;
char *p;
- b = t = s;
+ t = s;
for (;;) {
switch (c = *s++) {
case '\\':
break;
case 0:
*t = 0;
- return (t - b);
+ return;
}
*t++ = c;
}