Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154567456
D43710.id134100.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
D43710.id134100.diff
View Options
diff --git a/sys/kern/subr_uio.c b/sys/kern/subr_uio.c
--- a/sys/kern/subr_uio.c
+++ b/sys/kern/subr_uio.c
@@ -351,7 +351,7 @@
*iov = NULL;
if (iovcnt > UIO_MAXIOV)
return (error);
- iovlen = iovcnt * sizeof (struct iovec);
+ iovlen = iovcnt * sizeof(struct iovec);
*iov = malloc(iovlen, M_IOV, M_WAITOK);
error = copyin(iovp, *iov, iovlen);
if (error) {
@@ -372,8 +372,8 @@
*uiop = NULL;
if (iovcnt > UIO_MAXIOV)
return (EINVAL);
- iovlen = iovcnt * sizeof (struct iovec);
- uio = malloc(iovlen + sizeof *uio, M_IOV, M_WAITOK);
+ iovlen = iovcnt * sizeof(struct iovec);
+ uio = malloc(iovlen + sizeof(*uio), M_IOV, M_WAITOK);
iov = (struct iovec *)(uio + 1);
error = copyin(iovp, iov, iovlen);
if (error) {
@@ -403,8 +403,8 @@
struct uio *uio;
int iovlen;
- iovlen = uiop->uio_iovcnt * sizeof (struct iovec);
- uio = malloc(iovlen + sizeof *uio, M_IOV, M_WAITOK);
+ iovlen = uiop->uio_iovcnt * sizeof(struct iovec);
+ uio = malloc(iovlen + sizeof(*uio), M_IOV, M_WAITOK);
*uio = *uiop;
uio->uio_iov = (struct iovec *)(uio + 1);
bcopy(uiop->uio_iov, uio->uio_iov, iovlen);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 10:31 PM (11 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32405003
Default Alt Text
D43710.id134100.diff (1 KB)
Attached To
Mode
D43710: Fix subr_uio.c style(9) with uses of sizeof.
Attached
Detach File
Event Timeline
Log In to Comment