summaryrefslogtreecommitdiff
path: root/package
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
commit85dcf817d85eee66b9fa3248423df232c913ce2b (patch)
tree37e79bd61de842fb518dc0f5283144485d9a1fa9 /package
parent60fe01e698eb6f3c4b8af0c9b6b5a59f1bcb5ab3 (diff)
downloadmtk-20170518-85dcf817d85eee66b9fa3248423df232c913ce2b.zip
mtk-20170518-85dcf817d85eee66b9fa3248423df232c913ce2b.tar.gz
mtk-20170518-85dcf817d85eee66b9fa3248423df232c913ce2b.tar.bz2
resolveip: fix whitespace
SVN-Revision: 27671
Diffstat (limited to 'package')
-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 8d6788c..310f35f 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