PERFORCE change 119746 for review
Sepherosa Ziehau
sephe at FreeBSD.org
Sun May 13 04:07:23 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=119746
Change 119746 by sephe at sephe_zealot:sam_wifi on 2007/05/13 04:06:48
u_intX_t -> uintX_t
Approved by: sam
Affected files ...
.. //depot/projects/wifi/sys/net80211/ieee80211_freebsd.c#25 edit
.. //depot/projects/wifi/sys/net80211/ieee80211_freebsd.h#27 edit
Differences ...
==== //depot/projects/wifi/sys/net80211/ieee80211_freebsd.c#25 (text+ko) ====
@@ -189,7 +189,7 @@
* can use this interface too.
*/
struct mbuf *
-ieee80211_getmgtframe(u_int8_t **frm, int headroom, int pktlen)
+ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen)
{
struct mbuf *m;
u_int len;
@@ -260,13 +260,13 @@
void
get_random_bytes(void *p, size_t n)
{
- u_int8_t *dp = p;
+ uint8_t *dp = p;
while (n > 0) {
- u_int32_t v = arc4random();
- size_t nb = n > sizeof(u_int32_t) ? sizeof(u_int32_t) : n;
- bcopy(&v, dp, n > sizeof(u_int32_t) ? sizeof(u_int32_t) : n);
- dp += sizeof(u_int32_t), n -= nb;
+ uint32_t v = arc4random();
+ size_t nb = n > sizeof(uint32_t) ? sizeof(uint32_t) : n;
+ bcopy(&v, dp, n > sizeof(uint32_t) ? sizeof(uint32_t) : n);
+ dp += sizeof(uint32_t), n -= nb;
}
}
==== //depot/projects/wifi/sys/net80211/ieee80211_freebsd.h#27 (text+ko) ====
@@ -185,7 +185,7 @@
#define time_after_eq(a,b) ((long)(a) - (long)(b) >= 0)
#define time_before_eq(a,b) time_after_eq(b,a)
-struct mbuf *ieee80211_getmgtframe(u_int8_t **frm, int headroom, int pktlen);
+struct mbuf *ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen);
#define M_LINK0 M_PROTO1 /* WEP requested */
#define M_PWR_SAV M_PROTO4 /* bypass PS handling */
#define M_MORE_DATA M_PROTO5 /* more data frames to follow */
More information about the p4-projects
mailing list