]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixed win32 compatibility.
authorRobert Joly <rjoly@nortel.com>
Sat, 4 Oct 2008 06:39:28 +0000 (06:39 +0000)
committerRobert Joly <rjoly@nortel.com>
Sat, 4 Oct 2008 06:39:28 +0000 (06:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9825 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch.c

index c271ba928096135240f4ecc0f946258a4bf8c5a1..949766becc090ddf1e8a76a9751155390582d3e7 100644 (file)
@@ -617,8 +617,8 @@ int main(int argc, char *argv[])
        }
 
        if (destroy_status == SWITCH_STATUS_RESTART) {
-               sleep(1);
-               ret = execv(argv[0], argv);
+        switch_sleep(1);
+               ret = (int)execv(argv[0], argv);
        }
 
        return ret;