mirror of
https://repo.or.cz/socat.git
synced 2025-07-09 05:46:32 +00:00
On bad parameter number print syntax; struct single pointers are now mostly called sfd
This commit is contained in:
parent
5eebca3a5b
commit
50b199dcd9
42 changed files with 1354 additions and 1163 deletions
12
xiohelp.c
12
xiohelp.c
|
@ -218,4 +218,16 @@ int xioopenhelp(FILE *of,
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* This function may be used by address handling code to log syntax error */
|
||||
int xiohelp_syntax(
|
||||
const char *addr,
|
||||
int expectnum,
|
||||
int isnum,
|
||||
const char *syntax)
|
||||
{
|
||||
Error4("%s: wrong number of parameters (%d instead of %d): usage: %s",
|
||||
addr, isnum, expectnum, syntax);
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif /* WITH_HELP */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue