Page MenuHomeFreeBSD

D12565.id.diff
No OneTemporary

D12565.id.diff

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

Mime Type
text/plain
Expires
Mon, May 18, 10:03 AM (12 m, 59 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33243333
Default Alt Text
D12565.id.diff (825 B)

Event Timeline