aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs_printf.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 13:19:57 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 13:19:57 +1000
commitec71cb6575290eb6ad716e4f620db445d8e1bcd3 (patch)
tree219a5dba000e0ad98ff563bc6f7d45d274d3a178 /libbb/xfuncs_printf.c
parentb5139d7cd8982d9b683cb1babf0bd759076aaab0 (diff)
parent6814cbc9288601840aedb372e2bd84dab76ffa43 (diff)
downloadbusybox-w32-ec71cb6575290eb6ad716e4f620db445d8e1bcd3.tar.gz
busybox-w32-ec71cb6575290eb6ad716e4f620db445d8e1bcd3.tar.bz2
busybox-w32-ec71cb6575290eb6ad716e4f620db445d8e1bcd3.zip
Merge branch 'origin/master' (early part)
Diffstat (limited to 'libbb/xfuncs_printf.c')
-rw-r--r--libbb/xfuncs_printf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c
index 3e189c2d1..31a6d8e3c 100644
--- a/libbb/xfuncs_printf.c
+++ b/libbb/xfuncs_printf.c
@@ -401,8 +401,12 @@ int FAST_FUNC xsocket(int domain, int type, int protocol)
401 /* Hijack vaguely related config option */ 401 /* Hijack vaguely related config option */
402#if ENABLE_VERBOSE_RESOLUTION_ERRORS 402#if ENABLE_VERBOSE_RESOLUTION_ERRORS
403 const char *s = "INET"; 403 const char *s = "INET";
404# ifdef AF_PACKET
404 if (domain == AF_PACKET) s = "PACKET"; 405 if (domain == AF_PACKET) s = "PACKET";
406# endif
407# ifdef AF_NETLINK
405 if (domain == AF_NETLINK) s = "NETLINK"; 408 if (domain == AF_NETLINK) s = "NETLINK";
409# endif
406IF_FEATURE_IPV6(if (domain == AF_INET6) s = "INET6";) 410IF_FEATURE_IPV6(if (domain == AF_INET6) s = "INET6";)
407 bb_perror_msg_and_die("socket(AF_%s,%d,%d)", s, type, protocol); 411 bb_perror_msg_and_die("socket(AF_%s,%d,%d)", s, type, protocol);
408#else 412#else