Changeset f724640


Ignore:
Timestamp:
07/27/10 17:06:49 (10 years ago)
Author:
Shane Alcock <salcock@…>
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:
6d3f99b
Parents:
d025ff7
Message:
  • Fix warnings in the skeleton code
Location:
examples/skeleton
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • examples/skeleton/complete.c

    r0f42351 rf724640  
    99#include <getopt.h>
    1010#include <stdlib.h>
     11#include <assert.h>
    1112
    1213static void per_packet(libtrace_packet_t *packet)
    1314{
     15        assert(packet);
    1416        /* Your code goes here */
    1517}
  • examples/skeleton/event.c

    r0f42351 rf724640  
    5151static void per_packet(libtrace_packet_t *packet) {
    5252
     53        assert(packet);
    5354        /* Your code goes here */
    5455}
  • examples/skeleton/output.c

    r0f42351 rf724640  
    77#include "libtrace.h"
    88#include <stdio.h>
     9#include <assert.h>
    910
    1011static void per_packet(libtrace_packet_t *packet)
    1112{
     13        assert(packet);
    1214        /* Your code goes here */
    1315}
  • examples/skeleton/trivial.c

    r0f42351 rf724640  
    1515{
    1616        /* You really should consider using complete.c instead */
     17        assert(packet);
     18       
     19        /* Your code goes here */
    1720
    18         /* Your code goes here */
    1921}
    2022
Note: See TracChangeset for help on using the changeset viewer.