Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
The actual code should be the same afterward, this is just cosmetic refactoring.
diff --git a/toys/lsb/md5sum.c b/toys/lsb/md5sum.c
index b0b3541..3b5571b 100644
--- a/toys/lsb/md5sum.c
+++ b/toys/lsb/md5sum.c
@@ -1,6 +1,4 @@
-/* vi: set sw=4 ts=4:
- *
- * md5sum.c - Calculate RFC 1321 md5 hash and sha1 hash.
+/* md5sum.c - Calculate RFC 1321 md5 hash and sha1 hash.
*
* Copyright 2012 Rob Landley <rob@landley.net>
*
@@ -219,8 +217,7 @@
buf = 0;
} while ((TT.count & 63) != 56);
if (sha1) count=bswap_64(count);
- for (i = 0; i < 8; i++)
- TT.buffer.c[56+i] = count >> (8*i);
+ for (i = 0; i < 8; i++) TT.buffer.c[56+i] = count >> (8*i);
transform();
if (sha1)