port latest changes from SAMBA_3_0 tree
[jpeach/samba.git] / source / web / statuspage.c
index 44461232b816a0dfce1b20f0bc35d9b7f8827fe0..c579e8f1123e1eca13c2b4519b72290574090eb6 100644 (file)
@@ -93,7 +93,7 @@ static char *mapPid2Machine (pid_t pid)
        }
 
        /* PID not in list or machine name NULL? return pid as string */
-       snprintf (pidbuf, sizeof (pidbuf) - 1, "%d", pid);
+       snprintf (pidbuf, sizeof (pidbuf) - 1, "%lu", (unsigned long)pid);
        return pidbuf;
 }