Changeset 880aa58 for lib/fifo.c


Ignore:
Timestamp:
02/16/06 15:44:06 (16 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:
f03fc17
Parents:
1fbd938
Message:

Added libtrace_set_err() to everything (except format_rt, that's shane's job)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/fifo.c

    r7068467 r880aa58  
    3333#include <errno.h>
    3434#include <stdlib.h> /* free */
    35 #include <stdio.h> /* perror, sprintf, printf */
     35#include <stdio.h> /* sprintf, printf */
    3636#include <assert.h> /* assert */
    3737#include <string.h> /* bzero */
     
    8585
    8686        if ((fifo->base = malloc(fifo->length)) == 0) {
    87                 perror("malloc");
     87                libtrace_set_err(errno,"malloc failed");
    8888                return 0;
    8989        }
Note: See TracChangeset for help on using the changeset viewer.