X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fclient.c;h=92e0711331f7dbd5a9e89e2ecbfb352cb2395859;hb=6c40d481d661d532dd527eaf34cebb6d3f8ed086;hp=a03809e1e1787037301beee3391b16b1648620da;hpb=86048c14a070e3382577dd22519319bce77c70b9;p=mmh diff --git a/sbr/client.c b/sbr/client.c index a03809e..92e0711 100644 --- a/sbr/client.c +++ b/sbr/client.c @@ -2,8 +2,6 @@ /* * client.c -- connect to a server * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -49,10 +47,6 @@ client (char *args, char *service, char *response, int len_response, int debug) if (args != NULL && *args != 0) { ap = client_copyip (client_brkstring (client_getcpy (args), " ", "\n"), ap, MAXARGS); - } else { - if (servers != NULL && *servers != 0) - ap = client_copyip (client_brkstring (client_getcpy (servers), " ", "\n"), - ap, MAXARGS); } if (ap == arguments) { *ap++ = client_getcpy ("localhost"); @@ -60,7 +54,9 @@ client (char *args, char *service, char *response, int len_response, int debug) } memset(&hints, 0, sizeof(hints)); +#ifdef AI_ADDRCONFIG hints.ai_flags = AI_ADDRCONFIG; +#endif hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM;