FRIGN
d6818a3c5f
Audit cksum(1)
...
1) Reorder local variables.
2) Cleanup error messages, use %zu for size_t.
3) combine putchar(' ') and fputs to substitute printf(" %s", s).
4) Fix usage().
5) argv-argc-usage-fix.
6) Add empty line before return.
2015-03-11 00:13:48 +01:00
FRIGN
31572c8b0e
Clean up #includes
2015-02-14 21:12:23 +01:00
FRIGN
43b8fa1a58
Add mandoc-manpage for cksum(1) and clean up code
...
and mark it as done in README.
2015-01-17 23:09:41 +00:00
FRIGN
7fc5856e64
Tweak NULL-pointer checks
...
Use !p and p when comparing pointers as opposed to explicit
checks against NULL. This is generally easier to read.
2014-11-14 10:54:30 +00:00
FRIGN
7d2683ddf2
Sort includes and more cleanup and fixes in util/
2014-11-14 10:54:10 +00:00
FRIGN
eee98ed3a4
Fix coding style
...
It was about damn time. Consistency is very important in such a
big codebase.
2014-11-13 18:08:43 +00:00
sin
0c5b7b9155
Stop using EXIT_{SUCCESS,FAILURE}
2014-10-02 23:46:59 +01:00
Hiltjo Posthuma
953ebf3573
code style
...
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-06-01 18:02:30 +01:00
dwts
459161481a
use always static for usage and keep usage definition above main
2014-04-22 14:49:23 +01:00
FRIGN
a4d9b7b11e
Use PRIu32 and avoid cast
2014-02-01 20:16:14 +00:00
sin
04a32251e4
Use uint32_t instead of unsigned int in cksum(1)
2014-01-31 13:53:28 +00:00
sin
b8edf3b4ee
Add weprintf() and replace fprintf(stderr, ...) calls
...
There is still some programs left to be updated for this.
Many of these programs would stop on the first file that they
could not open.
2013-11-13 11:41:43 +00:00
sin
8fdfa7caeb
Convert cksum(1) to use FILE * instead of an fd
...
In sbase we generally do I/O through FILE * instead of file
descriptors directly.
Do not error out on the first file that can't be opened.
2013-11-12 11:17:08 +00:00
stateless
c1c367c1bd
Explicitly cast len to unsigned long for %lu
2013-07-02 14:09:36 -04:00
Connor Lane Smith
fcb8821246
revert to per-cmd usage()
2012-05-15 13:32:56 +01:00
Connor Lane Smith
f3188246d8
cksum: ARGBEGIN, no buffering
2012-05-14 21:30:02 +01:00
Connor Lane Smith
70ba7a6e62
cksum: error check
2011-06-10 04:36:40 +01:00
Connor Lane Smith
6be3e82218
add cksum
2011-06-10 04:14:05 +01:00