Deleted Added
full compact
readrec.c (200420) readrec.c (200462)
1/*-
2 * Copyright (c) 2007 Diomidis Spinellis
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007 Diomidis Spinellis
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/usr.bin/lastcomm/readrec.c 200420 2009-12-11 23:35:38Z delphij $");
29__FBSDID("$FreeBSD: head/usr.bin/lastcomm/readrec.c 200462 2009-12-13 03:14:06Z delphij $");
30
31#include <sys/param.h>
32#include <sys/stat.h>
33#include <sys/types.h>
34#include <sys/acct.h>
35
30
31#include <sys/param.h>
32#include <sys/stat.h>
33#include <sys/types.h>
34#include <sys/acct.h>
35
36#include <ctype.h>
37#include <err.h>
36#include <errno.h>
38#include <errno.h>
39#include <fcntl.h>
37#include <stddef.h>
38#include <stdio.h>
40#include <stddef.h>
41#include <stdio.h>
42#include <stdlib.h>
39#include <string.h>
40
41int readrec_forward(FILE *f, struct acctv2 *av2);
42int readrec_backward(FILE *f, struct acctv2 *av2);
43
44/*
45 * Reverse offsetof: return the offset of field f
46 * from the end of the structure s.

--- 181 unchanged lines hidden ---
43#include <string.h>
44
45int readrec_forward(FILE *f, struct acctv2 *av2);
46int readrec_backward(FILE *f, struct acctv2 *av2);
47
48/*
49 * Reverse offsetof: return the offset of field f
50 * from the end of the structure s.

--- 181 unchanged lines hidden ---