shithub: scc

Download patch

ref: 736b8b4e9a0173ce9a59655b3e5ae04dc1ac2700
parent: 53c4ce7baacccf3d1b616912446c4a98984516f0
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Feb 23 06:07:55 EST 2018

[ar] Remove comment

After the changes in inlist() it is hard to detect that
you already consumed all the elements in the list.

--- a/ar/main.c
+++ b/ar/main.c
@@ -411,7 +411,6 @@
 			        m.fname);
 			exit(1);
 		}
-		/* TODO: Implement early break */
 		fgetpos(fp, &pos);
 		(*fun)(&m, argc, argv);
 		fsetpos(fp, &pos);
@@ -440,7 +439,7 @@
 	for (i = 0; i < 3; i++) {
 		if ((fi = tmps[i].fp) == NULL)
 			continue;
-		fseek(fi , 0, SEEK_SET);
+		fseek(fi, 0, SEEK_SET);
 		while ((c = getc(fi)) != EOF)
 			putc(c, fp);
 		if (ferror(fi)) {