aboutsummaryrefslogtreecommitdiffstats
path: root/package/resolveip
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-17 22:47:56 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-17 22:47:56 +0000
commite9de2616e564b741930a066e86b2668ed9a48758 (patch)
treeb89fb1b34addae33892180a5ff60c5bfacb8dbca /package/resolveip
parent18f7f438188e37434bee91f9b387984e8bbf6acf (diff)
downloadupstream-e9de2616e564b741930a066e86b2668ed9a48758.tar.gz
upstream-e9de2616e564b741930a066e86b2668ed9a48758.tar.bz2
upstream-e9de2616e564b741930a066e86b2668ed9a48758.zip
[package] resolveip: fix whitespace
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27671 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/resolveip')
-rw-r--r--package/resolveip/src/resolveip.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/package/resolveip/src/resolveip.c b/package/resolveip/src/resolveip.c
index 8d6788c9a8..310f35ffd5 100644
--- a/package/resolveip/src/resolveip.c
+++ b/package/resolveip/src/resolveip.c
@@ -36,16 +36,16 @@ int main(int argc, char **argv)
{
int timeout = 3;
char opt;
- char ipaddr[INET6_ADDRSTRLEN];
- void *addr;
- struct addrinfo *res, *rp;
+ char ipaddr[INET6_ADDRSTRLEN];
+ void *addr;
+ struct addrinfo *res, *rp;
struct sigaction sa = { .sa_handler = &abort_query };
- struct addrinfo hints = {
- .ai_family = AF_UNSPEC,
- .ai_socktype = SOCK_STREAM,
- .ai_protocol = IPPROTO_TCP,
- .ai_flags = 0
- };
+ struct addrinfo hints = {
+ .ai_family = AF_UNSPEC,
+ .ai_socktype = SOCK_STREAM,
+ .ai_protocol = IPPROTO_TCP,
+ .ai_flags = 0
+ };
while ((opt = getopt(argc, argv, "46t:h")) > -1)
{
@@ -80,8 +80,8 @@ int main(int argc, char **argv)
if (getaddrinfo(argv[optind], NULL, &hints, &res))
exit(2);
- for (rp = res; rp != NULL; rp = rp->ai_next)
- {
+ for (rp = res; rp != NULL; rp = rp->ai_next)
+ {
addr = (rp->ai_family == AF_INET)
? (void *)&((struct sockaddr_in *)rp->ai_addr)->sin_addr
: (void *)&((struct sockaddr_in6 *)rp->ai_addr)->sin6_addr