]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Use portable version of strerror_r()
authorTravis Cross <tc@traviscross.com>
Mon, 16 Jun 2014 13:45:39 +0000 (13:45 +0000)
committerTravis Cross <tc@traviscross.com>
Mon, 16 Jun 2014 13:52:03 +0000 (13:52 +0000)
FS-6596 --resolve

src/switch.c

index 993613766364e6d8909bcd7cb359ff40e0d3f5ff..e14b11dcce18c9f3cd9021020e2c7962931c7f17 100644 (file)
@@ -400,13 +400,13 @@ static void reincarnate_protect(char **argv) {
                                if (execv(argv[0], argv) == -1) {
                                        char buf[256];
                                        fprintf(stderr, "Reincarnate execv() failed: %d %s\n", errno,
-                                                       strerror_r(errno, buf, sizeof(buf)));
+                                                       switch_strerror_r(errno, buf, sizeof(buf)));
                                }
                                fprintf(stderr, "Trying reincarnate-reexec plan B...\n");
                                if (execvp(argv[0], argv) == -1) {
                                        char buf[256];
                                        fprintf(stderr, "Reincarnate execvp() failed: %d %s\n", errno,
-                                                       strerror_r(errno, buf, sizeof(buf)));
+                                                       switch_strerror_r(errno, buf, sizeof(buf)));
                                }
                                fprintf(stderr, "Falling back to normal reincarnate behavior...\n");
                                goto refork;