os: xtrans: drop GetReopenInfo()
Not used anywhere, so no need to keep it around anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
cbcb9718ef
commit
8b3ab3586c
22
os/Xtrans.c
22
os/Xtrans.c
|
@ -556,28 +556,6 @@ TRANS(ReopenCOTSServer) (int trans_id, int fd, const char *port)
|
|||
return TRANS(Reopen) (XTRANS_OPEN_COTS_SERVER, trans_id, fd, port);
|
||||
}
|
||||
|
||||
int
|
||||
TRANS(GetReopenInfo) (XtransConnInfo ciptr,
|
||||
int *trans_id, int *fd, char **port)
|
||||
|
||||
{
|
||||
for (unsigned int i = 0; i < NUMTRANS; i++)
|
||||
{
|
||||
if (Xtransports[i].transport == ciptr->transptr)
|
||||
{
|
||||
*trans_id = Xtransports[i].transport_id;
|
||||
*fd = ciptr->fd;
|
||||
|
||||
if ((*port = strdup (ciptr->port)) == NULL)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
TRANS(SetOption) (XtransConnInfo ciptr, int option, int arg)
|
||||
|
||||
|
|
|
@ -190,13 +190,6 @@ XtransConnInfo TRANS(ReopenCOTSServer)(
|
|||
const char * /* port */
|
||||
);
|
||||
|
||||
int TRANS(GetReopenInfo)(
|
||||
XtransConnInfo, /* ciptr */
|
||||
int *, /* trans_id */
|
||||
int *, /* fd */
|
||||
char ** /* port */
|
||||
);
|
||||
|
||||
int TRANS(SetOption)(
|
||||
XtransConnInfo, /* ciptr */
|
||||
int, /* option */
|
||||
|
|
Loading…
Reference in New Issue