Separate variable declaration from assignment

We need to do this to allow for the label placement on older gcc
versions

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
Neil Horman 2022-01-26 09:26:38 -05:00
parent 9b004c6628
commit 0f594a6f19

View file

@ -104,8 +104,10 @@ char * get_data(char *string)
/* Send "setup" to get sleep interval, banned IRQs and banned CPUs,
* "stats" to get CPU tree statistics
*/
int socket_fd;
try_again:
int socket_fd = init_connection();
socket_fd = init_connection();
if(!socket_fd) {
return NULL;
}