lkml.org 
[lkml]   [2013]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2 6/8] turbostat: Factor out common function to open file and exit on failure
On Tue, Aug 20, 2013 at 8:20 PM, Josh Triplett <josh@joshtriplett.org> 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


\
 
 \ /
  Last update: 2013-08-21 07:01    [W:0.073 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site