Fixed some warnings.

diff --git a/server/registry.c b/server/registry.c
index 2ad6a15..6d6b034 100644
--- a/server/registry.c
+++ b/server/registry.c
@@ -1424,7 +1424,7 @@
     else p = tmp;
     for (;;)
     {
-        sprintf( p, "reg%x%04x.tmp", getpid(), count++ );
+        sprintf( p, "reg%lx%04x.tmp", (long) getpid(), count++ );
         if ((fd = open( tmp, O_CREAT | O_EXCL | O_WRONLY, 0666 )) != -1) break;
         if (errno != EEXIST) goto done;
         close( fd );