mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	move some code used only --with-pri in the proper
conditionally-compiled area. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -941,15 +941,6 @@ static int zt_setlinear(int zfd, int linear) | ||||
| } | ||||
|  | ||||
|  | ||||
| static int zt_setlaw(int zfd, int law) | ||||
| { | ||||
| 	int res; | ||||
| 	res = ioctl(zfd, ZT_SETLAW, &law); | ||||
| 	if (res) | ||||
| 		return res; | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| static int alloc_sub(struct zt_pvt *p, int x) | ||||
| { | ||||
| 	ZT_BUFFERINFO bi; | ||||
| @@ -8048,6 +8039,15 @@ static void apply_plan_to_number(char *buf, size_t size, const struct zt_pri *pr | ||||
| 	} | ||||
| } | ||||
|  | ||||
| static int zt_setlaw(int zfd, int law) | ||||
| { | ||||
| 	int res; | ||||
| 	res = ioctl(zfd, ZT_SETLAW, &law); | ||||
| 	if (res) | ||||
| 		return res; | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| static void *pri_dchannel(void *vpri) | ||||
| { | ||||
| 	struct zt_pri *pri = vpri; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user