gvinum.c (a4bf5fb987611aeb78c422312b63b185e39982d7) | gvinum.c (ee4912eb07925d5602645d09aa41fb39f7909c24) |
---|---|
1/* 2 * Copyright (c) 2004 Lukas Ertl 3 * Copyright (c) 2005 Chris Jones 4 * Copyright (c) 2007 Ulf Lilleengen 5 * All rights reserved. 6 * 7 * Portions of this software were developed for the FreeBSD Project 8 * by Chris Jones thanks to the support of Google's Summer of Code --- 630 unchanged lines hidden (view full) --- 639/* Detach a plex or subdisk from its parent. */ 640void 641gvinum_detach(int argc, char **argv) 642{ 643 const char *errstr; 644 struct gctl_req *req; 645 int flags, i; 646 | 1/* 2 * Copyright (c) 2004 Lukas Ertl 3 * Copyright (c) 2005 Chris Jones 4 * Copyright (c) 2007 Ulf Lilleengen 5 * All rights reserved. 6 * 7 * Portions of this software were developed for the FreeBSD Project 8 * by Chris Jones thanks to the support of Google's Summer of Code --- 630 unchanged lines hidden (view full) --- 639/* Detach a plex or subdisk from its parent. */ 640void 641gvinum_detach(int argc, char **argv) 642{ 643 const char *errstr; 644 struct gctl_req *req; 645 int flags, i; 646 |
647 flags = 0; |
|
647 optreset = 1; 648 optind = 1; 649 while ((i = getopt(argc, argv, "f")) != -1) { 650 switch(i) { 651 case 'f': 652 flags |= GV_FLAG_F; 653 break; 654 default: --- 776 unchanged lines hidden --- | 648 optreset = 1; 649 optind = 1; 650 while ((i = getopt(argc, argv, "f")) != -1) { 651 switch(i) { 652 case 'f': 653 flags |= GV_FLAG_F; 654 break; 655 default: --- 776 unchanged lines hidden --- |