shithub: riscv

Download patch

ref: 6fbb1acc8fa0b6655b14e8c46240a4a8d2d8c672
parent: a59e61a6a4e11e0256da0d209afa38ccacd460a2
author: Ori Bernstein <ori@eigenstate.org>
date: Sun May 22 17:49:08 EDT 2022

diff: clean up some comments

I did the tidying and fixes. Let's remove those
comments.

--- a/sys/src/cmd/diff/diffio.c
+++ b/sys/src/cmd/diff/diffio.c
@@ -141,8 +141,8 @@
 		p = erealloc(p, (++j+3)*sizeof(Line));
 	len[i] = j;
 	file[i] = p;
-	input[i] = bp;			/*fix*/
-	if (i == 0) {			/*fix*/
+	input[i] = bp;
+	if (i == 0) {
 		file1 = orig;
 		firstchange = 0;
 	} else
--- a/sys/src/cmd/diff/diffreg.c
+++ b/sys/src/cmd/diff/diffreg.c
@@ -89,7 +89,6 @@
 int *J;		/*will be overlaid on class*/
 long *ixold;	/*will be overlaid on klist*/
 long *ixnew;	/*will be overlaid on file[1]*/
-/* END OF SOME TIDYING */
 
 static void	
 sort(Line *a, int n)	/*shellsort CACM #201*/