Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
bb6a21a4
Commit
bb6a21a4
authored
Oct 06, 2004
by
osdl.net!shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build warnings on x86_64
(Logical change 1.92)
parent
d163858f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
misc/ifstat.c
misc/ifstat.c
+2
-2
tc/m_action.c
tc/m_action.c
+2
-1
tc/q_cbq.c
tc/q_cbq.c
+2
-1
tc/tc.c
tc/tc.c
+8
-4
No files found.
misc/ifstat.c
View file @
bb6a21a4
...
...
@@ -240,8 +240,8 @@ void dump_raw_db(FILE *fp, int to_hist)
/* use communication definitions of meg/kilo etc */
static
const
unsigned
long
long
giga
=
1000000000ull
;
static
const
unsigned
long
mega
=
1000000
;
static
const
unsigned
long
kilo
=
1000
;
static
const
unsigned
long
long
mega
=
1000000
;
static
const
unsigned
long
long
kilo
=
1000
;
void
format_rate
(
FILE
*
fp
,
unsigned
long
long
*
vals
,
double
*
rates
,
int
i
)
{
...
...
tc/m_action.c
View file @
bb6a21a4
...
...
@@ -45,7 +45,8 @@ void act_usage(void)
static
int
print_noaopt
(
struct
action_util
*
au
,
FILE
*
f
,
struct
rtattr
*
opt
)
{
if
(
opt
&&
RTA_PAYLOAD
(
opt
))
fprintf
(
f
,
"[Unknown action, optlen=%u] "
,
RTA_PAYLOAD
(
opt
));
fprintf
(
f
,
"[Unknown action, optlen=%u] "
,
(
unsigned
)
RTA_PAYLOAD
(
opt
));
return
0
;
}
...
...
tc/q_cbq.c
View file @
bb6a21a4
...
...
@@ -452,7 +452,8 @@ static int cbq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
if
(
tb
[
TCA_CBQ_OVL_STRATEGY
])
{
if
(
RTA_PAYLOAD
(
tb
[
TCA_CBQ_OVL_STRATEGY
])
<
sizeof
(
*
ovl
))
fprintf
(
stderr
,
"CBQ: too short overlimit strategy %u/%u
\n
"
,
RTA_PAYLOAD
(
tb
[
TCA_CBQ_OVL_STRATEGY
]),
sizeof
(
*
ovl
));
(
unsigned
)
RTA_PAYLOAD
(
tb
[
TCA_CBQ_OVL_STRATEGY
]),
(
unsigned
)
sizeof
(
*
ovl
));
else
ovl
=
RTA_DATA
(
tb
[
TCA_CBQ_OVL_STRATEGY
]);
}
...
...
tc/tc.c
View file @
bb6a21a4
...
...
@@ -44,7 +44,8 @@ static int print_noqopt(struct qdisc_util *qu, FILE *f,
struct
rtattr
*
opt
)
{
if
(
opt
&&
RTA_PAYLOAD
(
opt
))
fprintf
(
f
,
"[Unknown qdisc, optlen=%u] "
,
RTA_PAYLOAD
(
opt
));
fprintf
(
f
,
"[Unknown qdisc, optlen=%u] "
,
(
unsigned
)
RTA_PAYLOAD
(
opt
));
return
0
;
}
...
...
@@ -60,7 +61,8 @@ static int parse_noqopt(struct qdisc_util *qu, int argc, char **argv, struct nlm
static
int
print_nofopt
(
struct
filter_util
*
qu
,
FILE
*
f
,
struct
rtattr
*
opt
,
__u32
fhandle
)
{
if
(
opt
&&
RTA_PAYLOAD
(
opt
))
fprintf
(
f
,
"fh %08x [Unknown filter, optlen=%u] "
,
fhandle
,
RTA_PAYLOAD
(
opt
));
fprintf
(
f
,
"fh %08x [Unknown filter, optlen=%u] "
,
fhandle
,
(
unsigned
)
RTA_PAYLOAD
(
opt
));
else
if
(
fhandle
)
fprintf
(
f
,
"fh %08x "
,
fhandle
);
return
0
;
...
...
@@ -226,14 +228,16 @@ int main(int argc, char **argv)
if
(
line
[
strlen
(
line
)
-
1
]
==
'\n'
)
{
line
[
strlen
(
line
)
-
1
]
=
'\0'
;
}
else
{
fprintf
(
stderr
,
"No newline at the end of line, looks like to long (%d chars or more)
\n
"
,
strlen
(
line
));
fprintf
(
stderr
,
"No newline at the end of line, looks like to long (%d chars or more)
\n
"
,
(
int
)
strlen
(
line
));
exit
(
-
1
);
}
largc
=
0
;
largv
[
largc
]
=
strtok
(
line
,
" "
);
while
((
largv
[
++
largc
]
=
strtok
(
NULL
,
" "
))
!=
NULL
)
{
if
(
largc
>
BMAXARG
)
{
fprintf
(
stderr
,
"Over %d arguments in batch mode, enough!
\n
"
,
BMAXARG
);
fprintf
(
stderr
,
"Over %d arguments in batch mode, enough!
\n
"
,
(
int
)
BMAXARG
);
exit
(
-
1
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment