[email protected]
[Top] [All Lists]

PERFORCE change 114163 for review

Subject: PERFORCE change 114163 for review
From: Robert Watson
Date: Wed, 7 Feb 2007 10:59:59 GMT
http://perforce.freebsd.org/chv.cgi?CH=114163

Change 114163 by [email protected]_cinnamon on 2007/02/07 10:59:26

        Use size_t for buffer sizes rather than u_int.

Affected files ...

.. //depot/projects/zcopybpf/src/sys/net/bpf.c#15 edit
.. //depot/projects/zcopybpf/src/sys/net/bpf.h#10 edit
.. //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#14 edit

Differences ...

==== //depot/projects/zcopybpf/src/sys/net/bpf.c#15 (text+ko) ====

@@ -336,7 +336,7 @@
 }
 
 static int
-bpf_ioctl_getzmax(struct thread *td, struct bpf_d *d, u_int *i)
+bpf_ioctl_getzmax(struct thread *td, struct bpf_d *d, size_t *i)
 {
 
        if (d->bd_bufmode != BPF_BUFMODE_ZBUF)
@@ -1289,7 +1289,7 @@
                return (bpf_ioctl_getzbuf(td, d, (struct bpf_zbuf *)addr));
 
        case BIOCGETZMAX:
-               return (bpf_ioctl_getzmax(td, d, (u_int *)addr));
+               return (bpf_ioctl_getzmax(td, d, (size_t *)addr));
 
        case BIOCGETZNEXT:
                return (bpf_ioctl_getznext(td, d, (struct bpf_zbuf *)addr));

==== //depot/projects/zcopybpf/src/sys/net/bpf.h#10 (text+ko) ====

@@ -150,7 +150,7 @@
 #define        BIOCSETBUFMODE  _IOW('B', 125, u_int)
 #define        BIOCACKZBUF     _IOW('B', 126, struct bpf_zbuf)
 #define        BIOCGETZBUF     _IOR('B', 127, struct bpf_zbuf)
-#define        BIOCGETZMAX     _IOR('B', 128, u_int)
+#define        BIOCGETZMAX     _IOR('B', 128, size_t)
 #define        BIOCGETZNEXT    _IOR('B', 129, struct bpf_zbuf)
 #define        BIOCSETZBUF     _IOW('B', 130, struct bpf_zbuf)
 #define        BIOCROTZBUF     _IOR('B', 131, struct bpf_zbuf)

==== //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#14 (text+ko) ====

@@ -527,7 +527,7 @@
  * Ioctl to return the maximum buffer size.
  */
 int
-bpf_zerocopy_ioctl_getzmax(struct thread *td, struct bpf_d *d, u_int *i)
+bpf_zerocopy_ioctl_getzmax(struct thread *td, struct bpf_d *d, size_t *i)
 {
 
        KASSERT(d->bd_bufmode == BPF_BUFMODE_ZBUF,
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "[email protected]"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 114163 for review, Robert Watson <=