From 1af43f92ca7b4e68349c11b53d27540304c39e1d Mon Sep 17 00:00:00 2001 From: Elliott Pardee Date: Fri, 12 Jun 2015 04:25:35 -0400 Subject: [PATCH] oopsies #2 --- c/typeprint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/typeprint.c b/c/typeprint.c index 64dddce..43bef02 100644 --- a/c/typeprint.c +++ b/c/typeprint.c @@ -15,12 +15,12 @@ process(char *name) ts.tv_sec = 0; ts.tv_nsec = 10 * 1000000; - if (access(file, F_OK) == -1) { + if (access(name, F_OK) == -1) { fprintf(stderr, "[err] no such file or directory\n"); return ENOENT; } - if (access(file, R_OK) == -1) { + if (access(name, R_OK) == -1) { fprintf(stderr, "[err] can't read file, permission denied\n"); return EACCES; }