shithub: scc

Download patch

ref: b4fad52488df39729d10af313bf14b0edc0d4cdb
parent: 24b2c0e20c9d5b98a179dec81e0f48fe8bbb5034
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Oct 6 18:08:00 EDT 2019

[cc] Rename scc executable to cc

--- a/src/cmd/cc/posix/cc.c
+++ b/src/cmd/cc/posix/cc.c
@@ -602,7 +602,7 @@
 		break;
 	case '-':
 		fprintf(stderr,
-		        "scc: ignored parameter --%s\n", EARGF(usage()));
+		        "cc: ignored parameter --%s\n", EARGF(usage()));
 		break;
 	default:
 		usage();
@@ -625,7 +625,7 @@
 
 	if (!dflag) {
 		if ((devnullfd = open("/dev/null", O_WRONLY)) < 0)
-			fputs("scc: could not open /dev/null\n", stderr);
+			fputs("cc: could not open /dev/null\n", stderr);
 	}
 
 	if (!(tmpdir = getenv("TMPDIR")) || !tmpdir[0])