]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix ret val
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 6 Nov 2007 16:49:29 +0000 (16:49 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 6 Nov 2007 16:49:29 +0000 (16:49 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@319 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/zap_zt.c

index 3313216f6c4907f96a723546f9839c15582b07ca..b2ee4c95b82dd0153014756a5663d2429afc6a3e 100644 (file)
@@ -707,7 +707,7 @@ zap_status_t zt_init(zap_io_interface_t **zio)
 
        if ((CONTROL_FD = open(ctlpath, O_RDWR)) < 0) {
                zap_log(ZAP_LOG_ERROR, "Cannot open control device\n");
-               return 0;
+               return ZAP_FAIL;
        }
 
        zt_globals.codec_ms = 20;