cksum.c (60b588eb94c32e0c4215b7f5fca82f3cd55e0fe2) cksum.c (6a9d52f375714b2e46c5e1293ddaa54608669981)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * James W. Williams of NASA Goddard Space Flight Center.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 56 unchanged lines hidden (view full) ---

65int
66main(int argc, char **argv)
67{
68 uint32_t val;
69 int ch, fd, rval;
70 off_t len;
71 char *fn, *p;
72 int (*cfncn)(int, uint32_t *, off_t *);
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * James W. Williams of NASA Goddard Space Flight Center.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 56 unchanged lines hidden (view full) ---

65int
66main(int argc, char **argv)
67{
68 uint32_t val;
69 int ch, fd, rval;
70 off_t len;
71 char *fn, *p;
72 int (*cfncn)(int, uint32_t *, off_t *);
73 void (*pfncn)(char *, u_int32_t, off_t);
73 void (*pfncn)(char *, uint32_t, off_t);
74
75 if ((p = rindex(argv[0], '/')) == NULL)
76 p = argv[0];
77 else
78 ++p;
79 if (!strcmp(p, "sum")) {
80 cfncn = csum1;
81 pfncn = psum1;

--- 59 unchanged lines hidden ---
74
75 if ((p = rindex(argv[0], '/')) == NULL)
76 p = argv[0];
77 else
78 ++p;
79 if (!strcmp(p, "sum")) {
80 cfncn = csum1;
81 pfncn = psum1;

--- 59 unchanged lines hidden ---