Tests for module 'sin'.
[pspp] / tests / test-gethostname.c
index 3ab0b86af53b7fb3f9b0a483a978539235145a2e..a63839b2d3435802eb826a3612b9bb463c29d1a8 100644 (file)
 
 /* Get gethostname() declaration.  */
 #include <unistd.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (gethostname, int, (char *, size_t));
+
 /* Get HOST_NAME_MAX definition.  */
 #include <limits.h>
 
@@ -29,7 +33,7 @@
 #define NOHOSTNAME "magic-gnulib-test-string"
 
 int
-main (int argc, char *argv[])
+main (int argc, char *argv[] _GL_UNUSED)
 {
   char buf[HOST_NAME_MAX];
   int rc;