Throughout Cygwin, use u_intN_t or uintN_t
Don't use u_char, u_short, u_int or u_long in Cygwin, unless it refers to the Winsock types. Use u_intN_t in BSD-based sources, unsigned char where strings are concerned, uintN_t otherwise. Also: * net.cc: Fix comment, we're not using u_long anymore. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -130,10 +130,10 @@ struct gmonhdr {
|
||||
#define MAXARCS ((1 << (8 * sizeof(HISTCOUNTER))) - 2)
|
||||
|
||||
struct tostruct {
|
||||
size_t selfpc;
|
||||
long count;
|
||||
u_short link;
|
||||
u_short pad;
|
||||
size_t selfpc;
|
||||
long count;
|
||||
u_int16_t link;
|
||||
u_int16_t pad;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -157,9 +157,9 @@ struct rawarc {
|
||||
*/
|
||||
struct gmonparam {
|
||||
volatile LONG state;
|
||||
u_short *kcount;
|
||||
u_int16_t *kcount;
|
||||
size_t kcountsize;
|
||||
u_short *froms;
|
||||
u_int16_t *froms;
|
||||
size_t fromssize;
|
||||
struct tostruct *tos;
|
||||
size_t tossize;
|
||||
|
Reference in New Issue
Block a user