gcc -g -optelnetd Authenticate.o common.o telnet-protocol.o settings.o main.c libUseful-3/libUseful-3.a -lm -lcrypt -lpam
main.c: In function ‘RunTelnetSession’:
main.c:306:29: warning: passing argument 2 of ‘PseudoTTYSpawnFunction’ from incompatible pointer type [-Wincompatible-pointer-types]
PseudoTTYSpawnFunction(&fd, LaunchPtyFunc, Session, TTYFLAG_CANON | TTYFLAG_ECHO | TTYFLAG_IN_CRLF | TTYFLAG_OUT_CRLF | TTYFLAG_IGNSIG, "");
^~~~~~~~~~~~~
In file included from libUseful-3/libUseful.h:41:0,
from common.h:4,
from main.c:1:
libUseful-3/SpawnPrograms.h:92:7: note: expected ‘BASIC_FUNC {aka int (*)(void *, int)}’ but argument is of type ‘int (*)(void *)’
pid_t PseudoTTYSpawnFunction(int *ret_pty, BASIC_FUNC Func, void *Data, int Flags, const char *Config);
^~~~~~~~~~~~~~~~~~~~~~
main.c: At top level:
main.c:632:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main(int argc, char *argv[])
^~~~
login: �
login: �
Password:
*** Error in `./ptelnetd 127.0.0.1': double free or corruption (out): 0x000055f66bf210d0 ***
Connection closed by foreign host.