]> Savannah Git Hosting - gnulib.git/commitdiff
sethostname tests: Avoid a gcc warning.
authorBruno Haible <bruno@clisp.org>
Sat, 3 Dec 2011 14:13:59 +0000 (15:13 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 3 Dec 2011 14:13:59 +0000 (15:13 +0100)
* tests/test-sethostname.c (main): Remove an unused variable.

ChangeLog
tests/test-sethostname.c

index 4fd7b0dfc9df176a073e407876b21155a096cf25..dda6c4f7170f02990c08feee53fa235f2a2fbb4f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-12-03  Bruno Haible  <bruno@clisp.org>
 
+       sethostname tests: Avoid a gcc warning.
+       * tests/test-sethostname.c (main): Remove an unused variable.
+
        Tweak last commit.
        * modules/sethostname-tests (Files): Sort by decreasing importance.
        (configure.ac): Check for geteuid.
index b9f6a9f2d99ce673b8da5dfc3536453eba3c390f..c9e5b80d87c5310ead60e5ce0f7b8f7cce09cf17 100644 (file)
@@ -49,7 +49,7 @@ main (int argc, char *argv[] _GL_UNUSED)
   char origname[HOST_NAME_MAX];
   char newname[HOST_NAME_MAX];
   char longname[HOST_NAME_MAX + 2];
-  int rcg, rcs, i;
+  int rcs, i;
 
   /* skip the tests if we don't have root privilege.  this does not
      consider things like CAP_SYS_ADMIN (linux) or PRIV_SYS_ADMIN