aboutsummaryrefslogtreecommitdiffstats
path: root/util/dotlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/dotlock.c')
-rw-r--r--util/dotlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/dotlock.c b/util/dotlock.c
index b64458e92..9edac57ed 100644
--- a/util/dotlock.c
+++ b/util/dotlock.c
@@ -145,10 +145,10 @@ create_dotlock( const char *file_to_lock )
h->tname = xmalloc( dirpartlen + 6+30+ strlen(nodename) + 11 );
#ifndef __riscos__
sprintf( h->tname, "%.*s/.#lk%p.%s.%d",
- dirpartlen, dirpart, h, nodename, (int)getpid() );
+ dirpartlen, dirpart, (void *)h, nodename, (int)getpid() );
#else /* __riscos__ */
sprintf( h->tname, "%.*s.lk%p/%s/%d",
- dirpartlen, dirpart, h, nodename, (int)getpid() );
+ dirpartlen, dirpart, (void *)h, nodename, (int)getpid() );
#endif /* __riscos__ */
do {