X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=file.c;h=5f6204dbc942f05e5253cc53d75a4e22a523900c;hp=5ce183fc36e57ecba0919a3782e2acf4eb901461;hb=3e31a8ceee19dcefa4817ff602718841deffade4;hpb=2ca8ac198d86668e1d6e517974354870c32ad70f diff --git a/file.c b/file.c index 5ce183f..5f6204d 100644 --- a/file.c +++ b/file.c @@ -52,7 +52,8 @@ find_files(void) return true; } -FILE *open_score_file(char *mode) +FILE * +open_score_file(char *mode) { return fopen("scores", mode); } @@ -98,10 +99,10 @@ is_dir(char *dirname) } static bool -is_file(char *dirname) +is_file(char *filename) { struct stat buf; - if(stat(dirname, &buf)) { + if(stat(filename, &buf)) { return false; } return S_ISREG(buf.st_mode);