[vlc-commits] access/mms: narrow scope of iteration variables
Filip Roséen
git at videolan.org
Thu Oct 13 11:09:47 CEST 2016
vlc | branch: master | Filip Roséen <filip at atch.se> | Wed Oct 12 20:08:10 2016 +0200| [ce4803809ecdf92b1662b98d31b0df07060af180] | committer: Jean-Baptiste Kempf
access/mms: narrow scope of iteration variables
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce4803809ecdf92b1662b98d31b0df07060af180
---
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 );
- }
}
More information about the vlc-commits
mailing list