winmm: Remove unused variable and if check (Coverity).
[wine.git] / dlls / wsock32 / protocol.c
blobcd2cf711414ece7f6eab65a54a3caf390369d2ae
1 /*
2 * WSOCK32 specific functions
4 * Copyright (C) 2001 Stefan Leichter
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #define USE_WS_PREFIX
23 #include "config.h"
25 #include <stdarg.h>
26 #include <stdio.h>
27 #include <string.h>
29 #ifdef HAVE_ARPA_INET_H
30 #include <arpa/inet.h>
31 #endif
32 #ifdef HAVE_NETDB_H
33 #include <netdb.h>
34 #endif
36 #include "windef.h"
37 #include "winbase.h"
38 #include "winsock2.h"
40 #include "wine/unicode.h"
42 /*****************************************************************************
43 * inet_network [WSOCK32.1100]
45 UINT WINAPI WSOCK32_inet_network(const char *cp)
47 #ifdef HAVE_INET_NETWORK
48 return inet_network(cp);
49 #else
50 return 0;
51 #endif
54 /*****************************************************************************
55 * getnetbyname [WSOCK32.1101]
57 struct netent * WINAPI WSOCK32_getnetbyname(const char *name)
59 #ifdef HAVE_GETNETBYNAME
60 return getnetbyname(name);
61 #else
62 return NULL;
63 #endif