diff options
Diffstat (limited to 'flow/gsl/gslcommon.c')
-rw-r--r-- | flow/gsl/gslcommon.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/flow/gsl/gslcommon.c b/flow/gsl/gslcommon.c index 2c263b1..6c8a692 100644 --- a/flow/gsl/gslcommon.c +++ b/flow/gsl/gslcommon.c @@ -1476,17 +1476,17 @@ GslErrorType gsl_check_file (const gchar *file_name, const gchar *mode) { - guint access_tqmask = 0; + guint access_mask = 0; guint check_file, check_dir, check_link; if (strchr (mode, 'r')) /* readable */ - access_tqmask |= R_OK; + access_mask |= R_OK; if (strchr (mode, 'w')) /* writable */ - access_tqmask |= W_OK; + access_mask |= W_OK; if (strchr (mode, 'x')) /* executable */ - access_tqmask |= X_OK; + access_mask |= X_OK; - if (access_tqmask && access (file_name, access_tqmask) < 0) + if (access_mask && access (file_name, access_mask) < 0) goto have_errno; check_file = strchr (mode, 'f') != NULL; /* open as file */ |