X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=file.c;h=efd08e5a0f23ac78f9444312349de8779c8ce4d8;hp=5ce183fc36e57ecba0919a3782e2acf4eb901461;hb=HEAD;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);