Narrow down the scope of the "uboot_autostart" variable. The flag can be made local to main(), there's no need to keep it global.
Signed-off-by: Bernhard Nortmann <[email protected]> --- fel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fel.c b/fel.c index a5cb99d..e36e92d 100644 --- a/fel.c +++ b/fel.c @@ -64,7 +64,6 @@ static int timeout = 60000; static int verbose = 0; /* Makes the 'fel' tool more talkative if non-zero */ static uint32_t uboot_entry = 0; /* entry point (address) of U-Boot */ static uint32_t uboot_size = 0; /* size of U-Boot binary */ -static int uboot_autostart = 0; /* "uboot" command flag = autostart U-Boot */ static void pr_info(const char *fmt, ...) { @@ -869,6 +868,7 @@ static double gettime(void) int main(int argc, char **argv) { + int uboot_autostart = 0; /* flag for "uboot" command = U-Boot autostart */ int rc; libusb_device_handle *handle = NULL; int iface_detached = -1; -- 2.4.6 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
