diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-05-03 22:29:21 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-05-03 22:29:21 +0200 |
commit | 2d2b4693689d5f3b858e2d983c428f2e4a24d364 (patch) | |
tree | fe1557c51142e9ab149a44a2cca32ec24d7d2f64 /tests | |
parent | 6ab3a57a4af0a0e64f4afe2794682128d108ff34 (diff) | |
download | gnutls-2d2b4693689d5f3b858e2d983c428f2e4a24d364.tar.gz |
Fix syntax-check warnings.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/resume.c | 5 | ||||
-rw-r--r-- | tests/x509dn.c | 7 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 58a7f575dc..3615226bb5 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -72,7 +72,7 @@ if ENABLE_OPENPGP ctests += openpgpself endif -tlsia_LDADD = ../libextra/libgnutls-extra.la $(LDADD) @LTLIBREADLINE@ +tlsia_LDADD = ../libextra/libgnutls-extra.la $(LDADD) $(LTLIBREADLINE) endif if ENABLE_OPRFI diff --git a/tests/resume.c b/tests/resume.c index b70bac444b..92803bbbca 100644 --- a/tests/resume.c +++ b/tests/resume.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation + * Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation * * Author: Simon Josefsson * @@ -443,8 +443,7 @@ wrap_db_init (void) static void wrap_db_deinit (void) { - if (cache_db) - free (cache_db); + free (cache_db); cache_db = NULL; return; } diff --git a/tests/x509dn.c b/tests/x509dn.c index 27ad6f1cd4..920e83600d 100644 --- a/tests/x509dn.c +++ b/tests/x509dn.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation + * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation * * Author: Simon Josefsson * @@ -520,14 +520,15 @@ doit (void) server (); wait (&status); -#if defined(WIFEXITED) && defined(WEXITSTATUS) +#if defined WIFEXITED && defined WEXITSTATUS if (WIFEXITED (status) && WEXITSTATUS (status)) { fail ("server: client failed with exit status %d\n", WEXITSTATUS (status)); } #endif -#if defined(WIFSIGNALED) && defined(WTERMSIG) + +#if defined WIFSIGNALED && defined WTERMSIG if (WIFSIGNALED (status)) { fail ("server: client failed with fatal signal %d\n", |