Commit fb59aaf
[nrf fromtree] net: wifi: shell: enhance consistency in
The `cmd_wifi_dpp_ap_auth_init` function was added but is not yet
aligned with others.
This update enhances consistency with the following changes:
- Unified the order of declaration for `opt`, `opt_index`,
`state`, and `long_options`.
- Wrapped lines in the `long_options` declaration to prevent them
from extending too far to the right.
- Applied `struct option` as `static const`
- Unified the wrapping of `getopt_long` calls, regardless of
the length of the `options` string.
- Using `getopt_state` to access `optarg` and also `optopt` offers
a better alternative to direct global access.
Signed-off-by: Pisit Sawangvonganan <[email protected]>
(cherry picked from commit 7d19539)cmd_wifi_dpp_ap_auth_init
1 parent 54e3abd commit fb59aaf
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2617 | 2617 | | |
2618 | 2618 | | |
2619 | 2619 | | |
2620 | | - | |
2621 | | - | |
2622 | | - | |
2623 | 2620 | | |
2624 | 2621 | | |
2625 | 2622 | | |
2626 | | - | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
2627 | 2629 | | |
2628 | 2630 | | |
2629 | 2631 | | |
2630 | | - | |
| 2632 | + | |
| 2633 | + | |
2631 | 2634 | | |
2632 | 2635 | | |
2633 | 2636 | | |
2634 | | - | |
| 2637 | + | |
2635 | 2638 | | |
2636 | 2639 | | |
2637 | | - | |
| 2640 | + | |
2638 | 2641 | | |
2639 | 2642 | | |
2640 | 2643 | | |
| |||
0 commit comments