git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dde50b4
)
libreplace: clock_gettime sets errno
author
Björn Jacke
<bj@sernet.de>
Fri, 10 Sep 2010 19:03:17 +0000
(21:03 +0200)
committer
Björn Jacke
<bj@sernet.de>
Mon, 13 Sep 2010 10:56:13 +0000
(12:56 +0200)
lib/replace/replace.c
patch
|
blob
|
history
diff --git
a/lib/replace/replace.c
b/lib/replace/replace.c
index f3459dd9c2b95932f2e3216f1a4b86f54ae49b73..a00f7053e2d064219539deaf21132f860a9faa8b 100644
(file)
--- 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;
}