usr.bin/make

Max Okumoto okumoto at ucsd.edu
Wed Dec 1 16:57:39 PST 2004


Add missing default: statements in switch.
constify a variable.
Some how these got lost in all the recent patches.

				Max
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 */




More information about the Submit mailing list