Re: [PATCH v2 6/8] turbostat: Factor out common function to open fileand exit on failure

From: Mike Frysinger
Date: Wed Aug 21 2013 - 00:49:50 EST


On Tue, Aug 20, 2013 at 8:20 PM, Josh Triplett <josh@xxxxxxxxxxxxxxxx> wrote:
> +FILE *fopen_or_die(const char *path, const char *mode)
> +{
> + FILE *filep = fopen(path, "r");

not a big deal, but would be nice to add the "e" flag
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/