This is a multi-part message in MIME format.
--------------090200010409090309090305
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Add missing default: statements in switch.
constify a variable.
Some how these got lost in all the recent patches.
Max
--------------090200010409090309090305
Content-Type: text/plain;
name="patch-6.5"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-6.5"
diff -ru dfly-src/make/str.c fbsd-src/make/str.c
--- str.c Wed Dec 1 16:48:18 2004
+++ str.c Wed Dec 1 16:48:16 2004
@@ -219,8 +219,12 @@
case 't':
ch = '\t';
break;
+ default:
+ break;
}
break;
+ default:
+ break;
}
if (!start)
start = t;
@@ -411,7 +416,7 @@
void
Str_SYSVSubst(Buffer buf, const char *pat, const char *src, int len)
{
- char *m;
+ const char *m;
if ((m = strchr(pat, '%')) != NULL) {
/* Copy the prefix */
--------------090200010409090309090305--