diff options
| author | Tom Yu <tlyu@mit.edu> | 2009-10-31 00:48:38 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 2009-10-31 00:48:38 +0000 |
| commit | 02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b (patch) | |
| tree | 61b9147863cd8be3eff63903dc36cae168254bd5 /src/tests/misc | |
| parent | 162ab371748cba0cc6f172419bd6e71fa04bb878 (diff) | |
| download | krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.gz krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.xz krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.zip | |
make mark-cstyle
make reindent
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/misc')
| -rw-r--r-- | src/tests/misc/test_getsockname.c | 12 | ||||
| -rw-r--r-- | src/tests/misc/test_nfold.c | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/tests/misc/test_getsockname.c b/src/tests/misc/test_getsockname.c index 5f59da4685..6254cca59c 100644 --- a/src/tests/misc/test_getsockname.c +++ b/src/tests/misc/test_getsockname.c @@ -1,6 +1,6 @@ /* * test_getsockname.c - * + * * This routine demonstrates a bug in the socket emulation library of * Solaris and other monstrosities that uses STREAMS. On other * machines with a real networking layer, it prints the local @@ -29,7 +29,7 @@ main(argc, argv) struct hostent *host; struct sockaddr_in s_sock; /* server address */ struct sockaddr_in c_sock; /* client address */ - + char *hostname; if (argc == 2) { @@ -54,7 +54,7 @@ main(argc, argv) #endif s_sock.sin_family = AF_INET; s_sock.sin_port = htons(5555); - + /* Open a socket */ if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { perror("socket"); @@ -69,14 +69,14 @@ main(argc, argv) perror("bind"); exit(1); } - + /* "connect" the datagram socket; this is necessary to get a local address properly bound for getsockname() below. */ if (connect(sock, (struct sockaddr *)&s_sock, sizeof(s_sock)) == -1) { perror("connect"); exit(1); } - + /* Get my address */ memset(&c_sock, 0, sizeof(c_sock)); i = sizeof(c_sock); @@ -86,6 +86,6 @@ main(argc, argv) } printf("My interface address is: %s\n", inet_ntoa(c_sock.sin_addr)); - + exit(0); } diff --git a/src/tests/misc/test_nfold.c b/src/tests/misc/test_nfold.c index 7a0bffe07e..dc26b39583 100644 --- a/src/tests/misc/test_nfold.c +++ b/src/tests/misc/test_nfold.c @@ -1,13 +1,13 @@ /* * Copyright (C) 1998 by the FundsXpress, INC. - * + * * All rights reserved. - * + * * Export of this software from the United States of America may require * a specific license from the United States Government. It is the * responsibility of any person or organization contemplating export to * obtain such a license before exporting. - * + * * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and * distribute this software and its documentation for any purpose and * without fee is hereby granted, provided that the above copyright @@ -18,7 +18,7 @@ * permission. FundsXpress makes no representations about the suitability of * this software for any purpose. It is provided "as is" without express * or implied warranty. - * + * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
