summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/common/util/strtol.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/common/util/strtol.c b/usr/src/common/util/strtol.c
index 8a67da740f..e46e86b7d1 100644
--- a/usr/src/common/util/strtol.c
+++ b/usr/src/common/util/strtol.c
@@ -20,6 +20,10 @@
*/
/*
+ * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+ */
+
+/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -96,6 +100,7 @@ strtol(const char *str, char **nptr, int base)
#if defined(_KERNEL) && !defined(_BOOT)
return (EINVAL);
#else /* _KERNEL && !_BOOT */
+ errno = EINVAL;
return (0);
#endif /* _KERNEL && !_BOOT */
}