Turn PARA_STRERROR into an inline function.
[paraslash.git] / server.c
index 17ff7cb408ae62e551b8e0ce754fe4a1e667c901..73986f6df3bf00d080bd7b9e2f12f4efa2e9a5f1 100644 (file)
--- a/server.c
+++ b/server.c
@@ -204,7 +204,7 @@ static void shm_init(void)
        mmd->sender_cmd_data.cmd_num = -1;
        return;
 err_out:
-       PARA_EMERG_LOG("%s", PARA_STRERROR(-ret));
+       PARA_EMERG_LOG("%s", para_strerror(-ret));
        exit(EXIT_FAILURE);
 }
 
@@ -318,7 +318,7 @@ static unsigned init_network(void)
        add_close_on_fork_list(fd); /* child doesn't need the listener */
        return fd;
 err:
-       PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret));
+       PARA_EMERG_LOG("%s\n", para_strerror(-ret));
        exit(EXIT_FAILURE);
 }