qemu-ga: Optimize var declaration and definition
authorDehan Meng <demeng@redhat.com>
Thu, 7 Nov 2024 10:21:54 +0000 (12:21 +0200)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Thu, 7 Nov 2024 10:28:20 +0000 (12:28 +0200)
commitccc2dfab57bfe4fdd02288761a7e7482f352bfcc
tree88fcda1ab0bc7c799bba10fed0b2ede2c9a80d7a
parent32bd9e206e04111ac3bb4fabdb215060ee1076e1
qemu-ga: Optimize var declaration and definition

Variable declarations moved to the beginning of blocks
Followed the coding style of using snake_case for variable names.
Proper initialization of param 'size_t n' to '0' for

Signed-off-by: Dehan Meng <demeng@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Message-ID: <20241107102155.57573-3-kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/commands-linux.c