summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-06-03 18:03:36 +0200
committerBjörn Jacke <bj@sernet.de>2009-06-03 18:06:43 +0200
commit7cdad30b9640cc876e8ca59cd67455039107a5df (patch)
tree9a41d23e40e5b8aac75c4ecaf08b35fc3d8fb4dc
parentbfd1f5ddc6022960af669f9d9628fee6a2572b00 (diff)
downloadsamba-7cdad30b9640cc876e8ca59cd67455039107a5df.tar.gz
samba-7cdad30b9640cc876e8ca59cd67455039107a5df.tar.bz2
samba-7cdad30b9640cc876e8ca59cd67455039107a5df.zip
s3: correct check for usleep value boundaries
-rw-r--r--source3/lib/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index d9d3266fbc..9bd231af61 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -94,7 +94,7 @@ int sys_usleep(long usecs)
* is not SPEC1170 complient... grumble... JRA.
*/
- if(usecs < 0 || usecs > 1000000) {
+ if(usecs < 0 || usecs > 999999) {
errno = EINVAL;
return -1;
}