projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
INSTALL.Linux: Don't discourage building Debian packages.
[openvswitch]
/
utilities
/
ovs-vsctl.c
diff --git
a/utilities/ovs-vsctl.c
b/utilities/ovs-vsctl.c
index d68e4740a65ce434b75811a61afcc8cdb696eeb3..4d50194aaa33a4fb8eef0d40e05cb968269aee27 100644
(file)
--- a/
utilities/ovs-vsctl.c
+++ b/
utilities/ovs-vsctl.c
@@
-182,12
+182,16
@@
parse_options(int argc, char *argv[])
#endif
{0, 0, 0, 0},
};
#endif
{0, 0, 0, 0},
};
+ char *tmp, *short_options;
+ tmp = long_options_to_short_options(long_options);
+ short_options = xasprintf("+%s", tmp);
+ free(tmp);
for (;;) {
int c;
for (;;) {
int c;
- c = getopt_long(argc, argv,
"+v::hVt:"
, long_options, NULL);
+ c = getopt_long(argc, argv,
short_options
, long_options, NULL);
if (c == -1) {
break;
}
if (c == -1) {
break;
}
@@
-245,6
+249,7
@@
parse_options(int argc, char *argv[])
abort();
}
}
abort();
}
}
+ free(short_options);
if (!db) {
db = default_db();
if (!db) {
db = default_db();