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
0348310b
Commit
0348310b
authored
Aug 30, 2013
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/x25.c: fix compile error for -DDEBUG=1
parent
2466c758
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
lib/x25.c
lib/x25.c
+3
-6
No files found.
lib/x25.c
View file @
0348310b
...
...
@@ -93,7 +93,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap)
_
(
"Address can't exceed eighteen digits with sigdigits"
),
sizeof
(
X25_errmsg
));
#ifdef DEBUG
fprintf
(
stderr
,
"x25_input(%s): %s !
\n
"
,
X25_errmsg
,
ori
g
);
fprintf
(
stderr
,
"x25_input(%s): %s !
\n
"
,
bufp
,
X25_errms
g
);
#endif
errno
=
EINVAL
;
return
(
-
1
);
...
...
@@ -112,7 +112,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap)
*
p
=
'/'
;
safe_strncpy
(
X25_errmsg
,
_
(
"Invalid address"
),
sizeof
(
X25_errmsg
));
#ifdef DEBUG
fprintf
(
stderr
,
"x25_input(%s): %s !
\n
"
,
X25_errmsg
,
ori
g
);
fprintf
(
stderr
,
"x25_input(%s): %s !
\n
"
,
bufp
,
X25_errms
g
);
#endif
errno
=
EINVAL
;
return
(
-
1
);
...
...
@@ -122,10 +122,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap)
/* All done. */
#ifdef DEBUG
fprintf
(
stderr
,
"x25_input(%s): "
,
orig
);
for
(
i
=
0
;
i
<
sizeof
(
x25_address
);
i
++
)
fprintf
(
stderr
,
"%02X "
,
sap
->
sa_data
[
i
]
&
0377
);
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"x25_input(%s)
\n
"
,
bufp
);
#endif
return
sigdigits
;
...
...
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