diff options
author | Michal Zidek <mzidek@redhat.com> | 2012-11-07 11:12:36 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-08 11:45:08 +0100 |
commit | 7a650399f57f2500ec0fbf8337790dfa2de35ddb (patch) | |
tree | 767b08e118f14ce79be682084c55c84aefc7feaf /src/util/util.h | |
parent | c469044e9321f544f8c013e54424a0d02ca67ec3 (diff) | |
download | sssd-7a650399f57f2500ec0fbf8337790dfa2de35ddb.tar.gz sssd-7a650399f57f2500ec0fbf8337790dfa2de35ddb.tar.xz sssd-7a650399f57f2500ec0fbf8337790dfa2de35ddb.zip |
util_lock.c: sss_br_lock_file accepted invalid parameter value
Return EINVAL if number of tries is <= 0. Also the parameter
retries was renamed to num_tries, so it is more obvious that
it also includes the first try.
Diffstat (limited to 'src/util/util.h')
-rw-r--r-- | src/util/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util.h b/src/util/util.h index 3cea997fb..f1524f3c5 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -556,7 +556,7 @@ struct sss_domain_info *copy_subdomain(TALLOC_CTX *mem_ctx, /* from util_lock.c */ errno_t sss_br_lock_file(int fd, size_t start, size_t len, - int retries, useconds_t wait); + int num_tries, useconds_t wait); /* Endianness-compatibility for systems running older versions of glibc */ |