Mercurial > hg > octave-shane > gnulib-hg
changeset 16150:ceb95637edc6
sethostname tests: Avoid a gcc warning.
* tests/test-sethostname.c (main): Remove an unused variable.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 03 Dec 2011 15:13:59 +0100 |
parents | 4e3101cbdf81 |
children | 5e77939eb443 |
files | ChangeLog tests/test-sethostname.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/tests/test-sethostname.c +++ b/tests/test-sethostname.c @@ -49,7 +49,7 @@ 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