diff options
Diffstat (limited to 'sunrpc/tst-getmyaddr.c')
-rw-r--r-- | sunrpc/tst-getmyaddr.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sunrpc/tst-getmyaddr.c b/sunrpc/tst-getmyaddr.c deleted file mode 100644 index 1eaf9b22ca..0000000000 --- a/sunrpc/tst-getmyaddr.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <stdio.h> -#include <string.h> -#include <arpa/inet.h> -#include <netinet/in.h> -#include <rpc/clnt.h> - - -static int -do_test (void) -{ - struct sockaddr_in ad; - struct sockaddr_in ad2; - memset (&ad, '\0', sizeof (ad)); - memset (&ad2, '\0', sizeof (ad2)); - - get_myaddress (&ad); - - printf ("addr = %s:%d\n", inet_ntoa (ad.sin_addr), ad.sin_port); - - return memcmp (&ad, &ad2, sizeof (ad)) == 0; -} - -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" |