2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License,
4 * version 2 as published by the Free Software Foundation.
6 * (C) John Crispin <blogic@openwrt.org>
17 int main(int argc, char **argv)
19 uint32_t t = 0, sum = 0x55aa55aa;
22 if ((argc != 2) || ((fd = open(argv[1], O_RDWR)) == -1)) {
23 fprintf(stderr, "Usage: %s input_file\n", *argv);
27 lseek(fd, -4, SEEK_END);
29 lseek(fd, 0, SEEK_SET);
31 while (read(fd, &t, 4) > 0)
34 lseek(fd, -4, SEEK_END);