mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Janitor patch to change uses of sizeof to ARRAY_LEN
(closes issue #13054) Reported by: pabelanger Patches: ARRAY_LEN.patch2 uploaded by pabelanger (license 224) Tested by: seanbright git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@130129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -64,7 +64,7 @@ static void milliwatt_release(struct ast_channel *chan, void *data) | ||||
| static int milliwatt_generate(struct ast_channel *chan, void *data, int len, int samples) | ||||
| { | ||||
| 	unsigned char buf[AST_FRIENDLY_OFFSET + 640]; | ||||
| 	const int maxsamples = sizeof (buf) / sizeof (buf[0]); | ||||
| 	const int maxsamples = ARRAY_LEN(buf); | ||||
| 	int i, *indexp = (int *) data; | ||||
| 	struct ast_frame wf = { | ||||
| 		.frametype = AST_FRAME_VOICE, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user