Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
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
net-tools
Commits
043b0faa
Commit
043b0faa
authored
Dec 31, 2009
by
Mike Frysinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netstat: fix %*s handling -- the field takes an int, not a size_t
parent
592e3a3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
netstat.c
netstat.c
+2
-2
No files found.
netstat.c
View file @
043b0faa
...
...
@@ -6,7 +6,7 @@
* NET-3 Networking Distribution for the LINUX operating
* system.
*
* Version: $Id: netstat.c,v 1.6
7 2009/09/06 23:05:28
vapier Exp $
* Version: $Id: netstat.c,v 1.6
8 2009/12/31 19:54:16
vapier Exp $
*
* Authors: Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de>
* Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
...
...
@@ -984,7 +984,7 @@ static void tcp_do_one(int lnr, const char *line, const char *prot)
break
;
}
printf
(
"%-4s %6ld %6ld %-*s %-*s %-11s"
,
prot
,
rxq
,
txq
,
netmax
(
23
,
strlen
(
local_addr
)),
local_addr
,
netmax
(
23
,
strlen
(
rem_addr
)),
rem_addr
,
_
(
tcp_state
[
state
]));
prot
,
rxq
,
txq
,
(
int
)
netmax
(
23
,
strlen
(
local_addr
)),
local_addr
,
(
int
)
netmax
(
23
,
strlen
(
rem_addr
)),
rem_addr
,
_
(
tcp_state
[
state
]));
finish_this_one
(
uid
,
inode
,
timers
);
}
...
...
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