summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-04-26 19:27:32 +0000
committerDiego Biurrun <diego@biurrun.de>2007-04-26 19:27:32 +0000
commit4ee10633d24869572d0053adf7c44fe58d351c33 (patch)
treea1c1003230007d78a2110b054c576fedfc9e3d03 /libavformat/os_support.c
parentc23a470800835202f497bb7451adaeaa2465ed42 (diff)
cosmetics: Remove trailing whitespace and tabs.
Originally committed as revision 8838 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r--libavformat/os_support.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 9dddab2f15..da303be49c 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -105,12 +105,12 @@ done:
int resolve_host(struct in_addr *sin_addr, const char *hostname)
{
struct hostent *hp;
-
+
if (!inet_aton(hostname, sin_addr)) {
- hp = gethostbyname(hostname);
- if (!hp)
- return -1;
- memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr));
+ hp = gethostbyname(hostname);
+ if (!hp)
+ return -1;
+ memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr));
}
return 0;
}