aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-08-10 07:07:03 +0000
committerWerner Koch <[email protected]>2014-08-10 07:08:03 +0000
commitab5eff46116a9a246ffb2c083bec637d0321d0cb (patch)
tree79ed54d847858d1b1f08df6b4e7b0b7794197446
parentUpdate ja.po (diff)
downloadlibgpg-error-ab5eff46116a9a246ffb2c083bec637d0321d0cb.tar.gz
libgpg-error-ab5eff46116a9a246ffb2c083bec637d0321d0cb.zip
tests: Fix compiler warning.
* tests/t-lock.c: Include header vor getpid. (revision_thread): Init "i" to avoid compiler warning. -- GnuPG-bug-id: 1681 Note that the non-initialization of I did not harm.
-rw-r--r--tests/t-lock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/t-lock.c b/tests/t-lock.c
index 190d63e..5a21666 100644
--- a/tests/t-lock.c
+++ b/tests/t-lock.c
@@ -25,6 +25,8 @@
#include <stdlib.h>
#include <string.h>
#include <assert.h>
+#include <sys/types.h>
+#include <unistd.h>
#ifdef _WIN32
# include <windows.h>
#else
@@ -132,7 +134,7 @@ static THREAD_RET_TYPE
revision_thread (void *arg)
{
gpg_err_code_t rc;
- int i;
+ int i = 0;
(void)arg;