Deleted Added
full compact
types.c (59880) types.c (125011)
1
2/*
3 * types.c
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

29 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
30 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
1
2/*
3 * types.c
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

29 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
30 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * $FreeBSD: head/usr.sbin/ngctl/types.c 59880 2000-05-01 23:30:46Z archie $
37 * $FreeBSD: head/usr.sbin/ngctl/types.c 125011 2004-01-26 10:27:18Z ru $
38 */
39
40#include "ngctl.h"
41
42static int TypesCmd(int ac, char **av);
43
44const struct ngcmd types_cmd = {
45 TypesCmd,
46 "types",
47 "Show information about all installed node types",
38 */
39
40#include "ngctl.h"
41
42static int TypesCmd(int ac, char **av);
43
44const struct ngcmd types_cmd = {
45 TypesCmd,
46 "types",
47 "Show information about all installed node types",
48 NULL
48 NULL,
49 {}
49};
50
51static int
50};
51
52static int
52TypesCmd(int ac, char **av)
53TypesCmd(int ac, char **av __unused)
53{
54 u_char rbuf[16 * 1024];
55 struct ng_mesg *const resp = (struct ng_mesg *) rbuf;
56 struct typelist *const tlist = (struct typelist *) resp->data;
54{
55 u_char rbuf[16 * 1024];
56 struct ng_mesg *const resp = (struct ng_mesg *) rbuf;
57 struct typelist *const tlist = (struct typelist *) resp->data;
57 int k, rtn = CMDRTN_OK;
58 int rtn = CMDRTN_OK;
59 u_int k;
58
59 /* Get arguments */
60 switch (ac) {
61 case 1:
62 break;
63 default:
64 return(CMDRTN_USAGE);
65 }

--- 27 unchanged lines hidden ---
60
61 /* Get arguments */
62 switch (ac) {
63 case 1:
64 break;
65 default:
66 return(CMDRTN_USAGE);
67 }

--- 27 unchanged lines hidden ---