]> 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:45:39 +0000 (13:45 +0000)
FS-6596 --resolve

src/switch.c

index 4523bd0589225724723b9302ccc839ff8b42da4a..633524eb56022566c47e9a9b1a11e08061ad530d 100644 (file)
@@ -402,13 +402,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;