Deleted Added
full compact
rule.c (100805) rule.c (124830)
1/*-
2 * Copyright (c) 2002 Dima Dorfman.
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

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

24 * SUCH DAMAGE.
25 */
26
27/*
28 * Rule subsystem manipulation.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002 Dima Dorfman.
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

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

24 * SUCH DAMAGE.
25 */
26
27/*
28 * Rule subsystem manipulation.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sbin/devfs/rule.c 100805 2002-07-28 06:59:40Z dd $");
32__FBSDID("$FreeBSD: head/sbin/devfs/rule.c 124830 2004-01-22 07:23:36Z grehan $");
33
34#include <sys/param.h>
35#include <sys/conf.h>
36#include <sys/ioctl.h>
37
38#include <assert.h>
39#include <err.h>
40#include <errno.h>

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

77};
78
79devfs_rsnum in_rsnum;
80
81int
82rule_main(int ac, char **av)
83{
84 struct cmd *c;
33
34#include <sys/param.h>
35#include <sys/conf.h>
36#include <sys/ioctl.h>
37
38#include <assert.h>
39#include <err.h>
40#include <errno.h>

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

77};
78
79devfs_rsnum in_rsnum;
80
81int
82rule_main(int ac, char **av)
83{
84 struct cmd *c;
85 char ch;
85 int ch;
86
87 setprogname("devfs rule");
88 optreset = optind = 1;
89 while ((ch = getopt(ac, av, "s:")) != -1)
90 switch (ch) {
91 case 's':
92 in_rsnum = eatonum(optarg);
93 break;

--- 381 unchanged lines hidden ---
86
87 setprogname("devfs rule");
88 optreset = optind = 1;
89 while ((ch = getopt(ac, av, "s:")) != -1)
90 switch (ch) {
91 case 's':
92 in_rsnum = eatonum(optarg);
93 break;

--- 381 unchanged lines hidden ---