Commit 4dfb04e5 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix compilation problem

fix documentation.
parent 7d7af2a9
......@@ -125,7 +125,9 @@ int ms_ticker_detach(MSTicker *ticker,MSFilter *f);
void ms_ticker_destroy(MSTicker *ticker);
/**
* Destroy a ticker.
* Override MSTicker's time function.
* This can be used to control the ticker from an external time provider, for example the
* clock of a sound card.
*
* @param ticker A #MSTicker object.
* @param func A replacement method for calculating "current time"
......
......@@ -180,10 +180,6 @@ int ms_discover_mtu(const char *host){
err=getaddrinfo(host,port,&hints,&ai);
if (err!=0){
ms_error("getaddrinfo(): %s\n",gai_strerror(err));
err = close(sock);
if (err!=0)
ms_error("close(): %s", strerror(err));
return -1;
}
sock=socket(PF_INET,SOCK_DGRAM,0);
......
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