Ignore:
Timestamp:
06/01/06 14:28:00 (7 years ago)
Author:
perry
Message:

Add better error handling to tools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/tracesplit/tracesplit.c

    r838 r846  
    105105        output=NULL; 
    106106        input=trace_create(argv[optind]); 
     107        if (trace_is_err(input)) { 
     108                trace_perror(input,""); 
     109                return 1; 
     110        } 
    107111 
    108         trace_start(input); 
     112        if (trace_start(input)==-1) { 
     113                trace_perror(input,""); 
     114                return 1; 
     115        } 
    109116 
    110117        while(1) { 
Note: See TracChangeset for help on using the changeset viewer.