* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
memcpy(&saddr.sin_addr, remote->h_addr, remote->h_length);
if(connect(connection->sid, (struct sockaddr *)&saddr, sizeof(saddr)) == ERROR) {
- SPC_Error(SPC_Bad_Connect,
- XeFindShortHost(remote->h_name));
+ XeString shorthost = XeFindShortHost(remote->h_name);
+ SPC_Error(SPC_Bad_Connect, shorthost);
+ XeFree(shorthost);
+
return(SPC_ERROR);
}
SPC_Connection_Ptr SPC_Standalone_Daemon(SPC_Connection_Ptr conn)
{
struct sockaddr_in saddr, client_saddr;
-#ifdef USL
- /* Only UnixWare 2.02 uses the Spec1170 parameter profile for accept(). */
- size_t len=sizeof(client_saddr);
-#else
int len=sizeof(client_saddr);
-#endif
int server_bind_attempts = MAX_SERVER_BIND_ATTEMPTS;
int server_bind_pause = SERVER_PAUSE_INTERVAL;
int pid, from;