projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*: remove a few more cases of argc usage. -89 bytes.
[oweals/busybox.git]
/
libbb
/
inet_common.c
diff --git
a/libbb/inet_common.c
b/libbb/inet_common.c
index 9c4f49649d689a60da1260a3423bdaa81792e530..0fc08d69d25f99ef1dc7eaba73ae1dcada767b67 100644
(file)
--- a/
libbb/inet_common.c
+++ b/
libbb/inet_common.c
@@
-5,13
+5,13
@@
*
* Heavily modified by Manuel Novoa III Mar 12, 2001
*
*
* Heavily modified by Manuel Novoa III Mar 12, 2001
*
- *
+ *
Licensed under GPLv2, see file LICENSE in this tarball for details.
*/
#include "libbb.h"
#include "inet_common.h"
*/
#include "libbb.h"
#include "inet_common.h"
-int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
+int
FAST_FUNC
INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
{
struct hostent *hp;
#if ENABLE_FEATURE_ETC_NETWORKS
{
struct hostent *hp;
#if ENABLE_FEATURE_ETC_NETWORKS
@@
-63,9
+63,6
@@
int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
#ifdef DEBUG
res_init();
_res.options |= RES_DEBUG;
#ifdef DEBUG
res_init();
_res.options |= RES_DEBUG;
-#endif
-
-#ifdef DEBUG
bb_error_msg("gethostbyname(%s)", name);
#endif
hp = gethostbyname(name);
bb_error_msg("gethostbyname(%s)", name);
#endif
hp = gethostbyname(name);
@@
-81,7
+78,7
@@
int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
* & 0x4000: host instead of net,
* & 0x0fff: don't resolve
*/
* & 0x4000: host instead of net,
* & 0x0fff: don't resolve
*/
-char
*
INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask)
+char
* FAST_FUNC
INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask)
{
/* addr-to-name cache */
struct addr {
{
/* addr-to-name cache */
struct addr {
@@
-165,7
+162,7
@@
char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask)
#if ENABLE_FEATURE_IPV6
#if ENABLE_FEATURE_IPV6
-int INET6_resolve(const char *name, struct sockaddr_in6 *sin6)
+int
FAST_FUNC
INET6_resolve(const char *name, struct sockaddr_in6 *sin6)
{
struct addrinfo req, *ai;
int s;
{
struct addrinfo req, *ai;
int s;
@@
-189,14
+186,14
@@
int INET6_resolve(const char *name, struct sockaddr_in6 *sin6)
#endif
#endif
-char
*
INET6_rresolve(struct sockaddr_in6 *sin6, int numeric)
+char
* FAST_FUNC
INET6_rresolve(struct sockaddr_in6 *sin6, int numeric)
{
char name[128];
int s;
if (sin6->sin6_family != AF_INET6) {
#ifdef DEBUG
{
char name[128];
int s;
if (sin6->sin6_family != AF_INET6) {
#ifdef DEBUG
- bb_error_msg("rresolve: unsupport address family %d!",
+ bb_error_msg("rresolve: unsupport
ed
address family %d!",
sin6->sin6_family);
#endif
errno = EAFNOSUPPORT;
sin6->sin6_family);
#endif
errno = EAFNOSUPPORT;