diff options
author | Björn Jacke <bj@sernet.de> | 2010-09-10 21:03:17 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-09-10 23:10:26 +0200 |
commit | e2de1b8e717f94944006f3478a133f256cef50de (patch) | |
tree | ff891974b00692dd9c47e81b07ec9ef8aa1bdfcc | |
parent | 3eda2815f648fdb688f9bace4c45870c7a427dfc (diff) | |
download | samba-e2de1b8e717f94944006f3478a133f256cef50de.tar.gz samba-e2de1b8e717f94944006f3478a133f256cef50de.tar.bz2 samba-e2de1b8e717f94944006f3478a133f256cef50de.zip |
libreplace: clock_gettime sets errno
-rw-r--r-- | lib/replace/replace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c index f3459dd9c2..a00f7053e2 100644 --- a/lib/replace/replace.c +++ b/lib/replace/replace.c @@ -776,7 +776,8 @@ int rep_clock_gettime(clockid_t clk_id, struct timespec *tp) tp->tv_nsec = tval.tv_usec * 1000; break; default: - return EINVAL; + errno = EINVAL; + return -1; } return 0; } |