[vlc-devel] [PATCH 11/13] access/mms: narrow scope of iteration variables
Filip Roséen
filip at atch.se
Wed Oct 12 20:08:10 CEST 2016
---
modules/access/mms/buffer.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/modules/access/mms/buffer.c b/modules/access/mms/buffer.c
index 4e11e36..1acfc57 100644
--- a/modules/access/mms/buffer.c
+++ b/modules/access/mms/buffer.c
@@ -215,14 +215,10 @@ int var_buffer_readempty( var_buffer_t *p_buf )
void var_buffer_getguid( var_buffer_t *p_buf, guid_t *p_guid )
{
- int i;
-
p_guid->Data1 = var_buffer_get32( p_buf );
p_guid->Data2 = var_buffer_get16( p_buf );
p_guid->Data3 = var_buffer_get16( p_buf );
- for( i = 0; i < 8; i++ )
- {
+ for( int i = 0; i < 8; i++ )
p_guid->Data4[i] = var_buffer_get8( p_buf );
- }
}
--
2.10.0
More information about the vlc-devel
mailing list