Changeset 1607


Ignore:
Timestamp:
07/16/10 14:36:48 (3 years ago)
Author:
salcock
Message:
  • Make sure we include the header for read() and close()
  • Remove seemingly useless function
  • Re-enable probe_filename function
  • Fix warning for unused parameter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_bpf.c

    r1508 r1607  
    5555#include <errno.h> 
    5656#include <fcntl.h> 
     57#include <unistd.h> 
    5758 
    5859/* This format deals with the BSD Native capture format, perhaps better 
     
    102103} 
    103104 
    104 /* XXX This function doesn't appear to be used anywhere - nor does it do 
    105  * anything particularly useful :) */ 
    106 static int bpf_start_filename(const char *filename) 
    107 { 
    108         return 0; 
    109 } 
    110  
    111105/* Initialises a BPF input trace */ 
    112106static int bpf_init_input(libtrace_t *libtrace)  
     
    448442 
    449443/* Returns the direction for a given BPF packet record */ 
    450 static libtrace_direction_t bpf_get_direction(const libtrace_packet_t *packet) { 
     444static libtrace_direction_t bpf_get_direction(const libtrace_packet_t *packet UNUSED) { 
    451445        /* BPF sadly can't do direction tagging */ 
    452446        return ~0; 
     
    508502        "$Id$", 
    509503        TRACE_FORMAT_BPF, 
    510         //bpf_probe_filename,   /* probe filename */ 
    511         NULL, 
     504        bpf_probe_filename,     /* probe filename */ 
    512505        NULL,                   /* probe magic */ 
    513506        bpf_init_input,         /* init_input */ 
Note: See TracChangeset for help on using the changeset viewer.