summaryrefslogtreecommitdiffstats
path: root/lib/getopt.c
diff options
context:
space:
mode:
authorwhitespace / reindent <invalid@invalid.invalid>2017-07-17 21:26:02 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-07-17 21:26:02 +0200
commitc14777c6bfd0a446c85243d3a9835054a259c276 (patch)
tree2021f7d89a6046f81ff1f44d256ecff28282568f /lib/getopt.c
parentMerge pull request #826 from qlyoung/rm-vtyoutln (diff)
downloadfrr-c14777c6bfd0a446c85243d3a9835054a259c276.tar.xz
frr-c14777c6bfd0a446c85243d3a9835054a259c276.zip
*: reindent pt. 2
w/ clang 5 * reflow comments * struct members go 1 per line * binpack algo was adjusted
Diffstat (limited to 'lib/getopt.c')
-rw-r--r--lib/getopt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/getopt.c b/lib/getopt.c
index 71799c9b6..3f52c6f06 100644
--- a/lib/getopt.c
+++ b/lib/getopt.c
@@ -619,8 +619,9 @@ int long_only;
if (longopts != NULL
&& (argv[optind][1] == '-'
- || (long_only && (argv[optind][2]
- || !my_index(optstring, argv[optind][1]))))) {
+ || (long_only
+ && (argv[optind][2]
+ || !my_index(optstring, argv[optind][1]))))) {
char *nameend;
const struct option *p;
const struct option *pfound = NULL;