Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148389255
D45465.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D45465.id.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/kstrtox.h b/sys/compat/linuxkpi/common/include/linux/kstrtox.h
--- a/sys/compat/linuxkpi/common/include/linux/kstrtox.h
+++ b/sys/compat/linuxkpi/common/include/linux/kstrtox.h
@@ -137,7 +137,7 @@
}
static inline int
-kstrtou8(const char *cp, unsigned int base, u8 *res)
+kstrtou8(const char *cp, unsigned int base, uint8_t *res)
{
char *end;
unsigned long temp;
@@ -149,13 +149,13 @@
end++;
if (*cp == 0 || *end != 0)
return (-EINVAL);
- if (temp != (u8)temp)
+ if (temp != (uint8_t)temp)
return (-ERANGE);
return (0);
}
static inline int
-kstrtou16(const char *cp, unsigned int base, u16 *res)
+kstrtou16(const char *cp, unsigned int base, uint16_t *res)
{
char *end;
unsigned long temp;
@@ -167,20 +167,20 @@
end++;
if (*cp == 0 || *end != 0)
return (-EINVAL);
- if (temp != (u16)temp)
+ if (temp != (uint16_t)temp)
return (-ERANGE);
return (0);
}
static inline int
-kstrtou32(const char *cp, unsigned int base, u32 *res)
+kstrtou32(const char *cp, unsigned int base, uint32_t *res)
{
return (kstrtouint(cp, base, res));
}
static inline int
-kstrtos64(const char *cp, unsigned int base, s64 *res)
+kstrtos64(const char *cp, unsigned int base, int64_t *res)
{
char *end;
@@ -197,7 +197,7 @@
static inline int
kstrtoll(const char *cp, unsigned int base, long long *res)
{
- return (kstrtos64(cp, base, (s64 *)res));
+ return (kstrtos64(cp, base, (int64_t *)res));
}
static inline int
@@ -218,7 +218,7 @@
static inline int
kstrtoull(const char *cp, unsigned int base, unsigned long long *res)
{
- return (kstrtou64(cp, base, (u64 *)res));
+ return (kstrtou64(cp, base, (uint64_t *)res));
}
static inline int
@@ -301,7 +301,7 @@
static inline int
kstrtou8_from_user(const char __user *s, size_t count, unsigned int base,
- u8 *p)
+ uint8_t *p)
{
char buf[8] = {};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 18, 1:18 PM (15 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29838281
Default Alt Text
D45465.id.diff (1 KB)
Attached To
Mode
D45465: LinuxKPI: Convert Linux integer types to ISO C99 in linux/kstrtox.h
Attached
Detach File
Event Timeline
Log In to Comment