[PATCH] ARM: fix vdsomunge not to depend on glibc specific error.h
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed Jul 1 15:27:14 PDT 2015
On Tue, Jun 30, 2015 at 11:48:29AM +0100, Szabolcs Nagy wrote:
> @@ -82,11 +80,25 @@
> #define EF_ARM_ABI_FLOAT_HARD 0x400
> #endif
>
> +static int failed;
> +static const char *argv0;
> static const char *outfile;
>
> +static void fail(const char *fmt, ...)
> +{
> + va_list ap;
> +
> + failed = 1;
> + fprintf(stderr, "%s: ", argv0);
> + va_start(ap, fmt);
> + vfprintf(stderr, fmt, ap);
> + va_end(ap);
> + exit(EXIT_FAILURE);
What purpose does "failed" serve? Reading through this patch, it
seems to be a write-only variable.
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
More information about the linux-arm-kernel
mailing list