Deleted Added
full compact
kldstat.c (302408) kldstat.c (315210)
1/*-
2 * Copyright (c) 1997 Doug Rabson
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997 Doug Rabson
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/11/sbin/kldstat/kldstat.c 297023 2016-03-18 14:49:11Z julian $");
28__FBSDID("$FreeBSD: stable/11/sbin/kldstat/kldstat.c 315210 2017-03-13 19:12:18Z markj $");
29
30#include <err.h>
31#include <libutil.h>
32#include <stdio.h>
33#include <stdlib.h>
34#include <unistd.h>
35#include <sys/types.h>
36#include <sys/param.h>

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

92 printmod(modid);
93 } else
94 printf("\n");
95}
96
97static void
98usage(void)
99{
29
30#include <err.h>
31#include <libutil.h>
32#include <stdio.h>
33#include <stdlib.h>
34#include <unistd.h>
35#include <sys/types.h>
36#include <sys/param.h>

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

92 printmod(modid);
93 } else
94 printf("\n");
95}
96
97static void
98usage(void)
99{
100 fprintf(stderr, "usage: kldstata[-d] [-h] [-q] [-v] [-i id] [-n filename]\n");
100 fprintf(stderr, "usage: kldstat [-d] [-h] [-q] [-v] [-i id] [-n filename]\n");
101 fprintf(stderr, " kldstat [-d] [-q] [-m modname]\n");
102 exit(1);
103}
104
105int
106main(int argc, char** argv)
107{
108 int c;

--- 93 unchanged lines hidden ---
101 fprintf(stderr, " kldstat [-d] [-q] [-m modname]\n");
102 exit(1);
103}
104
105int
106main(int argc, char** argv)
107{
108 int c;

--- 93 unchanged lines hidden ---