/* Get memcpy, strdup. */
#include <string.h>
+/* Get snprintf. */
+#include <stdio.h>
+
#include <stdbool.h>
#include "gettext.h"
#define N_(String) String
#include "inet_ntop.h"
-#include "snprintf.h"
extern int h_errno;
{
struct servent *se = NULL;
const char *proto =
- (hints && (hints->ai_socktype == SOCK_DGRAM)) ? "udp" : "tcp";
+ (hints && hints->ai_socktype == SOCK_DGRAM) ? "udp" : "tcp";
- if ((hints == NULL) || !(hints->ai_flags & AI_NUMERICSERV))
- {
- /* FIXME: Use getservbyname_r if available. */
- se = getservbyname (servname, proto);
- }
+ if (hints == NULL || !(hints->ai_flags & AI_NUMERICSERV))
+ /* FIXME: Use getservbyname_r if available. */
+ se = getservbyname (servname, proto);
if (!se)
{