Deleted Added
full compact
nfsdumpstate.c (193070) nfsdumpstate.c (210272)
1/*-
2 * Copyright (c) 2009 Rick Macklem, University of Guelph
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) 2009 Rick Macklem, University of Guelph
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.sbin/nfsdumpstate/nfsdumpstate.c 193070 2009-05-29 22:19:45Z delphij $");
29__FBSDID("$FreeBSD: head/usr.sbin/nfsdumpstate/nfsdumpstate.c 210272 2010-07-20 00:32:11Z rmacklem $");
30
31#include <sys/param.h>
32#include <sys/linker.h>
33#include <sys/module.h>
34#include <sys/socket.h>
35
36#include <arpa/inet.h>
37

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

71{
72 int ch, openstate;
73 char *lockfile;
74
75 if (modfind("nfsd") < 0)
76 errx(1, "nfsd not loaded - self terminating");
77 openstate = 0;
78 lockfile = NULL;
30
31#include <sys/param.h>
32#include <sys/linker.h>
33#include <sys/module.h>
34#include <sys/socket.h>
35
36#include <arpa/inet.h>
37

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

71{
72 int ch, openstate;
73 char *lockfile;
74
75 if (modfind("nfsd") < 0)
76 errx(1, "nfsd not loaded - self terminating");
77 openstate = 0;
78 lockfile = NULL;
79 while ((ch = getopt(argc, argv, "ol")) != -1)
79 while ((ch = getopt(argc, argv, "ol:")) != -1)
80 switch (ch) {
81 case 'o':
82 openstate = 1;
83 break;
84 case 'l':
85 lockfile = optarg;
86 break;
87 default:

--- 193 unchanged lines hidden ---
80 switch (ch) {
81 case 'o':
82 openstate = 1;
83 break;
84 case 'l':
85 lockfile = optarg;
86 break;
87 default:

--- 193 unchanged lines hidden ---