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
738c8340
Commit
738c8340
authored
Aug 25, 2015
by
Mike Frysinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: af: constify herror message
This string is never modified, so constify it.
parent
61077c38
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
lib/ax25.c
lib/ax25.c
+1
-1
lib/inet.c
lib/inet.c
+1
-1
lib/inet6.c
lib/inet6.c
+1
-1
lib/net-support.h
lib/net-support.h
+1
-1
lib/netrom.c
lib/netrom.c
+1
-1
lib/rose.c
lib/rose.c
+1
-1
lib/x25.c
lib/x25.c
+1
-1
No files found.
lib/ax25.c
View file @
738c8340
...
...
@@ -143,7 +143,7 @@ static int AX25_input(int type, char *bufp, struct sockaddr *sap)
/* Display an error message. */
static
void
AX25_herror
(
char
*
text
)
static
void
AX25_herror
(
c
onst
c
har
*
text
)
{
if
(
text
==
NULL
)
fprintf
(
stderr
,
"%s
\n
"
,
AX25_errmsg
);
...
...
lib/inet.c
View file @
738c8340
...
...
@@ -231,7 +231,7 @@ static int INET_rresolve(char *name, size_t len, struct sockaddr_in *sin,
}
static
void
INET_reserror
(
char
*
text
)
static
void
INET_reserror
(
c
onst
c
har
*
text
)
{
herror
(
text
);
}
...
...
lib/inet6.c
View file @
738c8340
...
...
@@ -116,7 +116,7 @@ static int INET6_rresolve(char *name, size_t namelen,
}
static
void
INET6_reserror
(
char
*
text
)
static
void
INET6_reserror
(
c
onst
c
har
*
text
)
{
herror
(
text
);
}
...
...
lib/net-support.h
View file @
738c8340
...
...
@@ -41,7 +41,7 @@ struct aftype {
const
char
*
(
*
print
)
(
const
char
*
);
const
char
*
(
*
sprint
)
(
struct
sockaddr
*
,
int
numeric
);
int
(
*
input
)
(
int
type
,
char
*
bufp
,
struct
sockaddr
*
);
void
(
*
herror
)
(
char
*
text
);
void
(
*
herror
)
(
c
onst
c
har
*
text
);
int
(
*
rprint
)
(
int
options
);
int
(
*
rinput
)
(
int
typ
,
int
ext
,
char
**
argv
);
...
...
lib/netrom.c
View file @
738c8340
...
...
@@ -146,7 +146,7 @@ static int NETROM_input(int type, char *bufp, struct sockaddr *sap)
/* Display an error message. */
static
void
NETROM_herror
(
char
*
text
)
static
void
NETROM_herror
(
c
onst
c
har
*
text
)
{
if
(
text
==
NULL
)
fprintf
(
stderr
,
"%s
\n
"
,
netrom_errmsg
);
...
...
lib/rose.c
View file @
738c8340
...
...
@@ -100,7 +100,7 @@ static int ROSE_input(int type, char *bufp, struct sockaddr *sap)
/* Display an error message. */
static
void
ROSE_herror
(
char
*
text
)
static
void
ROSE_herror
(
c
onst
c
har
*
text
)
{
if
(
text
==
NULL
)
fprintf
(
stderr
,
"%s
\n
"
,
ROSE_errmsg
);
...
...
lib/x25.c
View file @
738c8340
...
...
@@ -131,7 +131,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap)
/* Display an error message. */
static
void
X25_herror
(
char
*
text
)
X25_herror
(
c
onst
c
har
*
text
)
{
if
(
text
==
NULL
)
fprintf
(
stderr
,
"%s
\n
"
,
X25_errmsg
);
else
fprintf
(
stderr
,
"%s: %s
\n
"
,
text
,
X25_errmsg
);
...
...
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