comparison os_support.c @ 2052:3d04317ab396 libavformat

cosmetics: Remove trailing whitespace and tabs.
author diego
date Thu, 26 Apr 2007 19:27:32 +0000
parents 612d19cb9550
children 857fbfeb2fa0
comparison
equal deleted inserted replaced
2051:72377d102d60 2052:3d04317ab396
103 103
104 /* resolve host with also IP address parsing */ 104 /* resolve host with also IP address parsing */
105 int resolve_host(struct in_addr *sin_addr, const char *hostname) 105 int resolve_host(struct in_addr *sin_addr, const char *hostname)
106 { 106 {
107 struct hostent *hp; 107 struct hostent *hp;
108 108
109 if (!inet_aton(hostname, sin_addr)) { 109 if (!inet_aton(hostname, sin_addr)) {
110 hp = gethostbyname(hostname); 110 hp = gethostbyname(hostname);
111 if (!hp) 111 if (!hp)
112 return -1; 112 return -1;
113 memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr)); 113 memcpy(sin_addr, hp->h_addr, sizeof(struct in_addr));
114 } 114 }
115 return 0; 115 return 0;
116 } 116 }
117 #endif /* CONFIG_NETWORK */ 117 #endif /* CONFIG_NETWORK */
118 118