r19084: make socket_wrapper more portable (standalone) and not use uintX_t
authorStefan Metzmacher <metze@samba.org>
Thu, 5 Oct 2006 07:03:41 +0000 (07:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:34 +0000 (14:20 -0500)
metze
(This used to be commit 7e89a0a28263e36ef7410122f987edf369154651)

source4/lib/socket_wrapper/socket_wrapper.c

index 84e1cb9fd91bef832c1d011667183e490e364917..fd80892d289aed799ab0a61ac4dd817e77f5b154 100644 (file)
@@ -121,8 +121,8 @@ struct socket_info
        socklen_t peername_len;
 
        struct {
-               unsigned long long pck_snd;
-               unsigned long long pck_rcv;
+               unsigned long pck_snd;
+               unsigned long pck_rcv;
        } io;
 
        struct socket_info *prev, *next;
@@ -464,9 +464,9 @@ static void swrap_dump_packet(struct socket_info *si, const struct sockaddr *add
        const struct sockaddr_in *src_addr;
        const struct sockaddr_in *dest_addr;
        const char *file_name;
-       uint32_t tcp_seq = 0;
-       uint32_t tcp_ack = 0;
-       uint8_t tcp_ctl = 0;
+       unsigned long tcp_seq = 0;
+       unsigned long tcp_ack = 0;
+       unsigned char tcp_ctl = 0;
        int unreachable = 0;
 
        file_name = socket_wrapper_pcap_file();