diff options
author | Rodrigo Ramírez Norambuena <decipher.hk@gmail.com> | 2015-05-03 05:09:57 -0400 |
---|---|---|
committer | Rodrigo Ramírez Norambuena <decipher.hk@gmail.com> | 2015-05-03 05:28:07 -0400 |
commit | 2ed5e6a9ba250c3e24569c87cb7badf09555efef (patch) | |
tree | 1ac4c79be79c182720bf7107083e1ba98dc85084 /utils/streamplayer.c | |
parent | 32eb812b28ffc1745e08cb507d8c4409d3ed297a (diff) |
utils: Remove trailing whitespace
Change-Id: I4644f43a6a1ca9b5130cd2a6746772b888eb4f7a
Diffstat (limited to 'utils/streamplayer.c')
-rw-r--r-- | utils/streamplayer.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/utils/streamplayer.c b/utils/streamplayer.c index 6c70b0840..809bd64b8 100644 --- a/utils/streamplayer.c +++ b/utils/streamplayer.c @@ -19,7 +19,7 @@ /*! * \file * \author Russell Bryant <russell@digium.com> - * + * * \brief A utility for reading from a raw TCP stream * * This application is intended for use when a raw TCP stream is desired to be @@ -84,33 +84,33 @@ int main(int argc, char *argv[]) } memset(&sin, 0, sizeof(sin)); - + sin.sin_family = AF_INET; sin.sin_port = htons(atoi(argv[2])); memcpy(&sin.sin_addr, hp->h_addr, sizeof(sin.sin_addr)); - + s = socket(AF_INET, SOCK_STREAM, 0); - + if (s < 0) { fprintf(stderr, "Unable to allocate socket!\n"); exit(1); - } + } res = connect(s, (struct sockaddr *)&sin, sizeof(sin)); - + if (res) { fprintf(stderr, "Unable to connect to host!\n"); close(s); - exit(1); + exit(1); } while (1) { res = read(s, buf, sizeof(buf)); if (res < 1) - break; - - memset(&tv, 0, sizeof(tv)); + break; + + memset(&tv, 0, sizeof(tv)); FD_ZERO(&wfds); FD_SET(1, &wfds); |