Deleted Added
full compact
comcontrol.c (118671) comcontrol.c (201227)
1/*-
2 * Copyright (c) 1992 Christopher G. Demetriou
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

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

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1992 Christopher G. Demetriou
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

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

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sbin/comcontrol/comcontrol.c 118671 2003-08-08 19:51:01Z johan $");
30__FBSDID("$FreeBSD: head/sbin/comcontrol/comcontrol.c 201227 2009-12-29 22:53:27Z ed $");
31
32#include <ctype.h>
33#include <err.h>
34#include <errno.h>
35#include <fcntl.h>
36#include <stdio.h>
37#include <stdlib.h>
38#include <string.h>
39#include <unistd.h>
40#include <sys/types.h>
41#include <sys/ioctl.h>
42
43static void usage(void);
44
45static void
31
32#include <ctype.h>
33#include <err.h>
34#include <errno.h>
35#include <fcntl.h>
36#include <stdio.h>
37#include <stdlib.h>
38#include <string.h>
39#include <unistd.h>
40#include <sys/types.h>
41#include <sys/ioctl.h>
42
43static void usage(void);
44
45static void
46usage()
46usage(void)
47{
48 fprintf(stderr,
49 "usage: comcontrol <filename> [dtrwait <n>] [drainwait <n>]\n");
50 exit(1);
51}
52
53int
54main(int argc, char *argv[])

--- 74 unchanged lines hidden ---
47{
48 fprintf(stderr,
49 "usage: comcontrol <filename> [dtrwait <n>] [drainwait <n>]\n");
50 exit(1);
51}
52
53int
54main(int argc, char *argv[])

--- 74 unchanged lines hidden ---