diff --git a/c/typeprint.c b/c/typeprint.c index 3af0605..64dddce 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(file, F_OK) == -1) { fprintf(stderr, "[err] no such file or directory\n"); return ENOENT; } - if (access(file, R_OK) = -1) { + if (access(file, R_OK) == -1) { fprintf(stderr, "[err] can't read file, permission denied\n"); return EACCES; }