swrap: Rename swrap_pcap_get_fd().
authorAndreas Schneider <asn@samba.org>
Thu, 2 Oct 2014 05:14:44 +0000 (07:14 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 2 Oct 2014 07:35:10 +0000 (09:35 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/socket_wrapper/socket_wrapper.c

index be48e184c290e1786c9078bd0177e7ba5c631b0b..a721b94a462cc7b97fb2be6569b0818aa4f405c5 100644 (file)
@@ -1906,7 +1906,7 @@ static uint8_t *swrap_pcap_packet_init(struct timeval *tval,
        return base;
 }
 
-static int swrap_get_pcap_fd(const char *fname)
+static int swrap_pcap_get_fd(const char *fname)
 {
        static int fd = -1;
 
@@ -2231,7 +2231,7 @@ static void swrap_dump_packet(struct socket_info *si,
                return;
        }
 
-       fd = swrap_get_pcap_fd(file_name);
+       fd = swrap_pcap_get_fd(file_name);
        if (fd != -1) {
                if (write(fd, packet, packet_len) != (ssize_t)packet_len) {
                        free(packet);