maint: update all copyright year number ranges
[gnulib.git] / tests / test-gethostname.c
index c1914fd..b4b3bf0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2008, 2009 Free Software Foundation
+ * Copyright (C) 2008-2013 Free Software Foundation, Inc.
  * Written by Simon Josefsson.
  *
  * This program is free software: you can redistribute it and/or modify
 
 #include <config.h>
 
+/* Get gethostname() declaration.  */
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (gethostname, int, (char *, size_t));
+
+/* Get HOST_NAME_MAX definition.  */
+#include <limits.h>
+
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
@@ -26,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;