diff options
author | Werner Koch <wk@gnupg.org> | 2008-10-20 15:53:23 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-10-20 15:53:23 +0200 |
commit | 0a5f7424660e404e5fd0361b9331d154acf01d6c (patch) | |
tree | b84fb5a994045e12eb326441d8c924094bd915cd /jnlib/dotlock.c | |
parent | Fix a bug in estream_snprintf. Found by a failed t-gettime under Windows. (diff) | |
download | gnupg2-0a5f7424660e404e5fd0361b9331d154acf01d6c.tar.xz gnupg2-0a5f7424660e404e5fd0361b9331d154acf01d6c.zip |
Marked all unused args on non-W32 platforms.
Diffstat (limited to 'jnlib/dotlock.c')
-rw-r--r-- | jnlib/dotlock.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jnlib/dotlock.c b/jnlib/dotlock.c index 66ab258ea..53a43244d 100644 --- a/jnlib/dotlock.c +++ b/jnlib/dotlock.c @@ -516,6 +516,10 @@ make_dotlock ( DOTLOCK h, long timeout ) int release_dotlock( DOTLOCK h ) { +#ifndef HAVE_DOSISH_SYSTEM + int pid, same_node; +#endif + /* To avoid atexit race conditions we first check whether there are any locks left. It might happen that another atexit handler tries to release the lock while the atexit handler of this module @@ -540,7 +544,6 @@ release_dotlock( DOTLOCK h ) return -1; } #else - int pid, same_node; pid = read_lockfile (h, &same_node); if ( pid == -1 ) |