mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2026-01-06 07:30:28 +00:00
tc/p_ip.c: Minor coding style cleanup
Break overlong function definitions and remove one extraneous whitespace. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
95c9d0d301
commit
952f89deba
@ -24,7 +24,8 @@
|
||||
#include "m_pedit.h"
|
||||
|
||||
static int
|
||||
parse_ip(int *argc_p, char ***argv_p, struct tc_pedit_sel *sel, struct tc_pedit_key *tkey)
|
||||
parse_ip(int *argc_p, char ***argv_p,
|
||||
struct tc_pedit_sel *sel, struct tc_pedit_key *tkey)
|
||||
{
|
||||
int res = -1;
|
||||
int argc = *argc_p;
|
||||
@ -52,7 +53,7 @@ parse_ip(int *argc_p, char ***argv_p, struct tc_pedit_sel *sel, struct tc_pedit_
|
||||
if (strcmp(*argv, "tos") == 0 || matches(*argv, "dsfield") == 0) {
|
||||
NEXT_ARG();
|
||||
tkey->off = 1;
|
||||
res = parse_cmd(&argc, &argv, 1, TU32, RU8, sel, tkey);
|
||||
res = parse_cmd(&argc, &argv, 1, TU32, RU8, sel, tkey);
|
||||
goto done;
|
||||
}
|
||||
if (strcmp(*argv, "ihl") == 0) {
|
||||
@ -139,7 +140,8 @@ done:
|
||||
}
|
||||
|
||||
static int
|
||||
parse_ip6(int *argc_p, char ***argv_p, struct tc_pedit_sel *sel, struct tc_pedit_key *tkey)
|
||||
parse_ip6(int *argc_p, char ***argv_p,
|
||||
struct tc_pedit_sel *sel, struct tc_pedit_key *tkey)
|
||||
{
|
||||
int res = -1;
|
||||
return res;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user