summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-09-10 21:03:17 +0200
committerBjörn Jacke <bj@sernet.de>2010-09-10 23:10:26 +0200
commite2de1b8e717f94944006f3478a133f256cef50de (patch)
treeff891974b00692dd9c47e81b07ec9ef8aa1bdfcc /lib
parent3eda2815f648fdb688f9bace4c45870c7a427dfc (diff)
downloadsamba-e2de1b8e717f94944006f3478a133f256cef50de.tar.gz
samba-e2de1b8e717f94944006f3478a133f256cef50de.tar.bz2
samba-e2de1b8e717f94944006f3478a133f256cef50de.zip
libreplace: clock_gettime sets errno
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/replace.c3
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;
}