X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-gethostname.c;h=a6f3fdad2168c3bbb06742f6d5b5f8cefe7e5519;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=3ab0b86af53b7fb3f9b0a483a978539235145a2e;hpb=47a185f85544daaf0893de504a46be1064b50342;p=gnulib.git diff --git a/tests/test-gethostname.c b/tests/test-gethostname.c index 3ab0b86af..a6f3fdad2 100644 --- a/tests/test-gethostname.c +++ b/tests/test-gethostname.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008, 2009 Free Software Foundation + * Copyright (C) 2008-2014 Free Software Foundation, Inc. * Written by Simon Josefsson. * * This program is free software: you can redistribute it and/or modify @@ -19,6 +19,10 @@ /* Get gethostname() declaration. */ #include + +#include "signature.h" +SIGNATURE_CHECK (gethostname, int, (char *, size_t)); + /* Get HOST_NAME_MAX definition. */ #include @@ -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;