zoneadm.c (5ee84fbde352945ab7b4739c6cb8e251a9dd27e6) zoneadm.c (394a25e24123cdf9d847097cafd585e4aed8f420)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

2607 sub_usage(SHELP_HELP, CMD_HELP);
2608 return (optopt == '?' ? Z_OK : Z_USAGE);
2609 default:
2610 sub_usage(SHELP_HELP, CMD_HELP);
2611 return (Z_USAGE);
2612 }
2613 }
2614 while (optind < argc) {
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

2607 sub_usage(SHELP_HELP, CMD_HELP);
2608 return (optopt == '?' ? Z_OK : Z_USAGE);
2609 default:
2610 sub_usage(SHELP_HELP, CMD_HELP);
2611 return (Z_USAGE);
2612 }
2613 }
2614 while (optind < argc) {
2615 if ((cmd_num = cmd_match(argv[optind])) < 0) {
2615 /* Private commands have NULL short_usage; omit them */
2616 if ((cmd_num = cmd_match(argv[optind])) < 0 ||
2617 cmdtab[cmd_num].short_usage == NULL) {
2616 sub_usage(SHELP_HELP, CMD_HELP);
2617 return (Z_USAGE);
2618 }
2619 sub_usage(cmdtab[cmd_num].short_usage, cmd_num);
2620 optind++;
2621 }
2622 return (Z_OK);
2623}

--- 103 unchanged lines hidden ---
2618 sub_usage(SHELP_HELP, CMD_HELP);
2619 return (Z_USAGE);
2620 }
2621 sub_usage(cmdtab[cmd_num].short_usage, cmd_num);
2622 optind++;
2623 }
2624 return (Z_OK);
2625}

--- 103 unchanged lines hidden ---