---
apps/obex_test/obex_test.c | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/apps/obex_test/obex_test.c b/apps/obex_test/obex_test.c
index 96e16fa..184a70b 100644
--- a/apps/obex_test/obex_test.c
+++ b/apps/obex_test/obex_test.c
@@ -118,28 +118,25 @@ static void obex_event(obex_t *handle, obex_object_t
*object,
#if 0
/*
* Function get_peer_addr (name, peer)
- *
- *
- *
*/
-static int get_peer_addr(char *name, struct sockaddr_in *peer)
+static int get_peer_addr(char *name, struct sockaddr_in *peer)
{
struct hostent *host;
in_addr_t inaddr;
-
+
/* Is the address in dotted decimal? */
if ((inaddr = inet_addr(name)) != INADDR_NONE) {
memcpy((char *) &peer->sin_addr, (char *) &inaddr,
- sizeof(inaddr));
+ sizeof(inaddr));
}
else {
if ((host = gethostbyname(name)) == NULL) {
printf( "Bad host name: ");
exit(-1);
- }
+ }
memcpy((char *) &peer->sin_addr, host->h_addr,
host->h_length);
- }
+ }
return 0;
}
@@ -155,7 +152,7 @@ static int inet_connect(obex_t *handle)
sizeof(struct sockaddr_in));
}
#endif
-
+
//
//
//
@@ -408,7 +405,7 @@ int main (int argc, char *argv[])
}
OBEX_SetUserData(handle, &global_context);
-
+
printf( "OBEX Interactive test client/server.\n");
while (!end) {
--
1.7.5.4
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users