setpmac.c (5b38a427c0c19994a726e7591032b18c9e3cdb48) setpmac.c (3e7cb94c9c8e6aaea734c07ebc4f967caf4232c4)
1/*-
2 * Copyright (c) 2002 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Network
6 * Associates Laboratories, the Security Research Division of Network
7 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
8 * ("CBOSS"), as part of the DARPA CHATS research program.

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

41#include <stdio.h>
42#include <stdlib.h>
43#include <string.h>
44#include <sysexits.h>
45#include <unistd.h>
46
47#define MAXELEMENTS 32
48
1/*-
2 * Copyright (c) 2002 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Network
6 * Associates Laboratories, the Security Research Division of Network
7 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
8 * ("CBOSS"), as part of the DARPA CHATS research program.

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

41#include <stdio.h>
42#include <stdlib.h>
43#include <string.h>
44#include <sysexits.h>
45#include <unistd.h>
46
47#define MAXELEMENTS 32
48
49void
49static void
50usage(void)
51{
52
53 fprintf(stderr, "setpmac [label] [command] [args ...]\n");
54 exit (EX_USAGE);
55}
56
57int
58main(int argc, char *argv[])
59{
50usage(void)
51{
52
53 fprintf(stderr, "setpmac [label] [command] [args ...]\n");
54 exit (EX_USAGE);
55}
56
57int
58main(int argc, char *argv[])
59{
60 char *shell;
60 const char *shell;
61 mac_t label;
62 int error;
63
64
65 if (argc < 3)
66 usage();
67
68 error = mac_from_text(&label, argv[1]);

--- 24 unchanged lines hidden ---
61 mac_t label;
62 int error;
63
64
65 if (argc < 3)
66 usage();
67
68 error = mac_from_text(&label, argv[1]);

--- 24 unchanged lines hidden ---