Fix some gcc warnings on Solaris:
[paraslash.git] / ipc.c
diff --git a/ipc.c b/ipc.c
index debf9d1..2cab393 100644 (file)
--- a/ipc.c
+++ b/ipc.c
@@ -52,7 +52,8 @@ static void para_semop(int id, struct sembuf *sops, int num)
                PARA_NOTICE_LOG("semaphore set %d was removed\n", id);
                return;
        }
-       PARA_EMERG_LOG("fatal semop error %s: pid %d\n", strerror(errno), getpid());
+       PARA_EMERG_LOG("fatal semop error %s: pid %d\n", strerror(errno),
+               (int)getpid());
        exit(EXIT_FAILURE);
 }