Changeset 0f42351 for examples/skeleton


Ignore:
Timestamp:
04/27/07 23:09:40 (14 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
4f55f69
Parents:
ffe2541
Message:

Lots more warnings squashed

Location:
examples/skeleton
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • examples/skeleton/complete.c

    r34ee7eb r0f42351  
    1010#include <stdlib.h>
    1111
    12 void per_packet(libtrace_packet_t *packet)
     12static void per_packet(libtrace_packet_t *packet)
    1313{
    1414        /* Your code goes here */
    1515}
    1616
    17 void usage(char *argv0)
     17static void usage(char *argv0)
    1818{
    1919        fprintf(stderr,"usage: %s [ --filter | -f bpfexp ]  [ --snaplen | -s snap ]\n\t\t[ --promisc | -p flag] [ --help | -h ] [ --libtrace-help | -H ] libtraceuri...\n",argv0);
  • examples/skeleton/event.c

    rd5a27e8 r0f42351  
    4949#include <libtrace.h>
    5050
    51 void per_packet(libtrace_packet_t *packet) {
     51static void per_packet(libtrace_packet_t *packet) {
    5252
    5353        /* Your code goes here */
    5454}
    5555
    56 uint32_t event_read_packet(libtrace_t *trace, libtrace_packet_t *packet) {
     56static uint32_t event_read_packet(libtrace_t *trace, libtrace_packet_t *packet)
     57{
    5758        libtrace_eventobj_t obj;
    5859        fd_set rfds;
  • examples/skeleton/output.c

    r0eef5d4 r0f42351  
    88#include <stdio.h>
    99
    10 void per_packet(libtrace_packet_t *packet)
     10static void per_packet(libtrace_packet_t *packet)
    1111{
    1212        /* Your code goes here */
  • examples/skeleton/trivial.c

    rbad6a93 r0f42351  
    1212#include <assert.h>
    1313
    14 void per_packet(libtrace_packet_t *packet)
     14static void per_packet(libtrace_packet_t *packet)
    1515{
    1616        /* You really should consider using complete.c instead */
Note: See TracChangeset for help on using the changeset viewer.