Filan: Fixed diag_set() call in filan_main.c

This commit is contained in:
Gerhard Rieger 2023-01-15 15:50:19 +01:00
parent 783d688463
commit b05b360320
2 changed files with 4 additions and 1 deletions

View file

@ -25,6 +25,9 @@ Corrections:
Filan: If IP protocol type cannot be retrieved, display at least the Filan: If IP protocol type cannot be retrieved, display at least the
socket type socket type
Filan: Fixed diag_set() call in filan_main.c, bug popped up with C23.
Thanks to Cristian Rodríguez from openSUSE for reporting this issue.
Coding: Coding:
New Environment variable SOCAT_TRANSFER_WAIT that Socat sleep before New Environment variable SOCAT_TRANSFER_WAIT that Socat sleep before
starting the data transfer loop. Useful, e.g., to accumulate multiple starting the data transfer loop. Useful, e.g., to accumulate multiple

View file

@ -32,7 +32,7 @@ int main(int argc, const char *argv[]) {
const char *outfname = NULL; const char *outfname = NULL;
unsigned long fildes; unsigned long fildes;
diag_set('I', false); diag_set('I', NULL);
diag_set('p', strchr(argv[0], '/') ? strrchr(argv[0], '/')+1 : argv[0]); diag_set('p', strchr(argv[0], '/') ? strrchr(argv[0], '/')+1 : argv[0]);
arg1 = argv+1; --argc; arg1 = argv+1; --argc;