Commit 0348310b authored by Bernd Eckenfels's avatar Bernd Eckenfels

lib/x25.c: fix compile error for -DDEBUG=1

parent 2466c758
...@@ -93,7 +93,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap) ...@@ -93,7 +93,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap)
_("Address can't exceed eighteen digits with sigdigits"), _("Address can't exceed eighteen digits with sigdigits"),
sizeof(X25_errmsg)); sizeof(X25_errmsg));
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig); fprintf(stderr, "x25_input(%s): %s !\n", bufp, X25_errmsg);
#endif #endif
errno = EINVAL; errno = EINVAL;
return(-1); return(-1);
...@@ -112,7 +112,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap) ...@@ -112,7 +112,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap)
*p = '/'; *p = '/';
safe_strncpy(X25_errmsg, _("Invalid address"), sizeof(X25_errmsg)); safe_strncpy(X25_errmsg, _("Invalid address"), sizeof(X25_errmsg));
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig); fprintf(stderr, "x25_input(%s): %s !\n", bufp, X25_errmsg);
#endif #endif
errno = EINVAL; errno = EINVAL;
return(-1); return(-1);
...@@ -122,10 +122,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap) ...@@ -122,10 +122,7 @@ X25_input(int type, char *bufp, struct sockaddr *sap)
/* All done. */ /* All done. */
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "x25_input(%s): ", orig); fprintf(stderr, "x25_input(%s)\n", bufp);
for (i = 0; i < sizeof(x25_address); i++)
fprintf(stderr, "%02X ", sap->sa_data[i] & 0377);
fprintf(stderr, "\n");
#endif #endif
return sigdigits; return sigdigits;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment