aboutsummaryrefslogtreecommitdiffstats
path: root/util/dotlock.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-06-26 10:23:06 +0000
committerWerner Koch <[email protected]>1999-06-26 10:23:06 +0000
commit080c9ca49f4d0b0aa07e00e1eb84bc39bf4c8562 (patch)
tree7d387cb3da17d9b3e25aef7f85acbad21f75be7f /util/dotlock.c
parentSee ChangeLog: Wed Jun 16 20:16:21 CEST 1999 Werner Koch (diff)
downloadgnupg-080c9ca49f4d0b0aa07e00e1eb84bc39bf4c8562.tar.gz
gnupg-080c9ca49f4d0b0aa07e00e1eb84bc39bf4c8562.zip
See ChangeLog: Sat Jun 26 12:15:59 CEST 1999 Werner Koch
Diffstat (limited to 'util/dotlock.c')
-rw-r--r--util/dotlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/dotlock.c b/util/dotlock.c
index 18841ec56..644cf8e3a 100644
--- a/util/dotlock.c
+++ b/util/dotlock.c
@@ -74,7 +74,7 @@ create_dotlock( const char *file_to_lock )
int fd = -1;
char pidstr[16];
#ifndef HAVE_DOSISH_SYSTEM
- struct utsname uts;
+ struct utsname utsbuf;
#endif
const char *nodename;
const char *dirpart;
@@ -93,10 +93,10 @@ create_dotlock( const char *file_to_lock )
/* fixme: add the hostname to the second line (FQDN or IP addr?) */
/* create a temporary file */
- if( uname( &uts ) )
+ if( uname( &utsbuf ) )
nodename = "unknown";
else
- nodename = uts.nodename;
+ nodename = utsbuf.nodename;
if( !(dirpart = strrchr( file_to_lock, '/' )) ) {
dirpart = ".";