mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
create_floppy_devices: remove dead "unlink" code
This commit is contained in:
parent
88243f0974
commit
f1a9ac32b9
@ -77,18 +77,12 @@ int main(int argc, char **argv)
|
|||||||
mode_t mode = 0660;
|
mode_t mode = 0660;
|
||||||
int create_nodes = 0;
|
int create_nodes = 0;
|
||||||
int print_nodes = 0;
|
int print_nodes = 0;
|
||||||
int unlink_nodes = 0;
|
|
||||||
int is_err = 0;
|
int is_err = 0;
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "cudm:U:G:M:t:")) != -1) {
|
while ((c = getopt(argc, argv, "cudm:U:G:M:t:")) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'c':
|
case 'c':
|
||||||
create_nodes = 1;
|
create_nodes = 1;
|
||||||
unlink_nodes = 0;
|
|
||||||
break;
|
|
||||||
case 'u':
|
|
||||||
unlink_nodes = 1;
|
|
||||||
create_nodes = 0;
|
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
print_nodes = 1;
|
print_nodes = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user