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
2b4f34b9
Commit
2b4f34b9
authored
Nov 20, 2011
by
Mike Frysinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_sname: constify args/return when possible
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
5888d1b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/inet.c
lib/inet.c
+1
-1
lib/net-support.h
lib/net-support.h
+1
-1
No files found.
lib/inet.c
View file @
2b4f34b9
...
...
@@ -416,7 +416,7 @@ static int read_services(void)
}
c
har
*
get_sname
(
int
socknumber
,
char
*
proto
,
int
numeric
)
c
onst
char
*
get_sname
(
int
socknumber
,
const
char
*
proto
,
int
numeric
)
{
static
char
buffer
[
64
],
init
=
0
;
struct
service
*
item
;
...
...
lib/net-support.h
View file @
2b4f34b9
...
...
@@ -124,7 +124,7 @@ extern int ROSE_rinput(int action, int flags, char **argv);
extern
int
aftrans_opt
(
const
char
*
arg
);
extern
void
aftrans_def
(
char
*
tool
,
char
*
argv0
,
char
*
dflt
);
extern
c
har
*
get_sname
(
int
socknumber
,
char
*
proto
,
int
numeric
);
extern
c
onst
char
*
get_sname
(
int
socknumber
,
const
char
*
proto
,
int
numeric
);
extern
int
flag_unx
;
extern
int
flag_ipx
;
...
...
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