DragonFly BSD
DragonFly submit List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

usr.bin/make


From: Max Okumoto <okumoto@xxxxxxxx>
Date: Wed, 01 Dec 2004 16:57:39 -0800

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


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]