summaryrefslogtreecommitdiff
path: root/test/test-writev.c
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2005-11-10 15:05:51 +0000
committerJim Jagielski <jim@apache.org>2005-11-10 15:05:51 +0000
commit5d2fae4818e5eca5c32f439da1dbaed1bb2dad1b (patch)
tree2a13a8ff035825ec1a1ade1a3516f266c2ad38c7 /test/test-writev.c
parentb87b4fa9a0d72477dae176c91c510ae7e4845a96 (diff)
downloadhttpd-5d2fae4818e5eca5c32f439da1dbaed1bb2dad1b.tar.gz
No functional change: simple detabbing of indented code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332305 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/test-writev.c')
-rw-r--r--test/test-writev.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/test-writev.c b/test/test-writev.c
index 072689a3c5..4740738f45 100644
--- a/test/test-writev.c
+++ b/test/test-writev.c
@@ -57,36 +57,36 @@ void main( int argc, char **argv )
if( argc != 3 ) {
usage:
- fprintf( stderr, "usage: test-writev a.b.c.d port#\n" );
- exit( 1 );
+ fprintf( stderr, "usage: test-writev a.b.c.d port#\n" );
+ exit( 1 );
}
server_addr.sin_family = AF_INET;
server_addr.sin_addr.s_addr = inet_addr( argv[1] );
if( server_addr.sin_addr.s_addr == INADDR_NONE ) {
- fprintf( stderr, "bogus address\n" );
- goto usage;
+ fprintf( stderr, "bogus address\n" );
+ goto usage;
}
server_addr.sin_port = htons( atoi( argv[2] ) );
s = socket( AF_INET, SOCK_STREAM, 0 );
if( s < 0 ) {
- perror("socket");
- exit(1);
+ perror("socket");
+ exit(1);
}
if( connect( s, (struct sockaddr *)&server_addr, sizeof( server_addr ) )
- != 0 ) {
- perror("connect");
- exit(1);
+ != 0 ) {
+ perror("connect");
+ exit(1);
}
if( setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char*)&just_say_no,
- sizeof(just_say_no)) != 0 ) {
- perror( "TCP_NODELAY" );
- exit(1);
+ sizeof(just_say_no)) != 0 ) {
+ perror( "TCP_NODELAY" );
+ exit(1);
}
/* now build up a two part writev and write it out */
for( i = 0; i < sizeof( buf ); ++i ) {
- buf[i] = 'x';
+ buf[i] = 'x';
}
vector[0].iov_base = buf;
vector[0].iov_len = sizeof(buf);