Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145210532
D12565.id33717.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
825 B
Referenced Files
None
Subscribers
None
D12565.id33717.diff
View Options
Index: head/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c
===================================================================
--- head/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c
+++ head/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c
@@ -41,10 +41,6 @@
{
*result = strtol(str, nptr, base);
- if (*result == 0)
- return (EINVAL);
- else if (*result == LONG_MIN || *result == LONG_MAX)
- return (ERANGE);
return (0);
}
@@ -58,10 +54,6 @@
}
*result = strtoul(str, nptr, base);
- if (*result == 0)
- return (EINVAL);
- else if (*result == ULONG_MAX)
- return (ERANGE);
return (0);
}
@@ -70,10 +62,6 @@
{
*result = (unsigned long long)strtouq(str, nptr, base);
- if (*result == 0)
- return (EINVAL);
- else if (*result == ULLONG_MAX)
- return (ERANGE);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 18, 3:41 AM (8 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28835833
Default Alt Text
D12565.id33717.diff (825 B)
Attached To
Mode
D12565: remove heuristic error detection from ddi_strto*()
Attached
Detach File
Event Timeline
Log In to Comment