diff options
Diffstat (limited to 'inet')
-rw-r--r-- | inet/tst-getni1.c | 2 | ||||
-rw-r--r-- | inet/tst-getni2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/inet/tst-getni1.c b/inet/tst-getni1.c index 0e8a792f49..3960f7112e 100644 --- a/inet/tst-getni1.c +++ b/inet/tst-getni1.c @@ -19,7 +19,7 @@ do_test (void) puts ("failed without NI_NAMEREQD"); retval = 1; } - + r = getnameinfo((struct sockaddr *) &s, sizeof (s), NULL, 0, NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV | NI_NAMEREQD); printf("r = %d\n", r); diff --git a/inet/tst-getni2.c b/inet/tst-getni2.c index b949d888d5..66e78062ba 100644 --- a/inet/tst-getni2.c +++ b/inet/tst-getni2.c @@ -23,7 +23,7 @@ do_test (void) puts ("failed without NI_NAMEREQD"); retval = 1; } - + buf[0] = '\0'; r = getnameinfo((struct sockaddr *) &s, sizeof (s), buf, sizeof (buf), NULL, 0, NI_NUMERICSERV | NI_NAMEREQD); |