~ubuntu-branches/ubuntu/maverick/rrdtool/maverick

« back to all changes in this revision

Viewing changes to src/rrd_first.c

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2010-07-22 08:07:01 UTC
  • mfrom: (1.2.8 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100722080701-k46mgdfz6euxwqsm
Tags: 1.4.3-1ubuntu1
* Merge from debian unstable, Remaining changes:
  - debian/control: Don't build against ruby1.9 as we don't want
    it in main.
* require libdbi >= 0.8.3 to prevent aborts when using dbi datasources

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
 
 * RRDtool 1.3.8  Copyright by Tobi Oetiker, 1997-2009
 
2
 * RRDtool 1.4.3  Copyright by Tobi Oetiker, 1997-2010
3
3
 *****************************************************************************
4
4
 * rrd_first Return
5
5
 *****************************************************************************
6
6
 * Initial version by Burton Strauss, ntopSupport.com - 3/2005
7
7
 *****************************************************************************/
8
8
 
 
9
#include <stdlib.h>
9
10
#include "rrd_tool.h"
10
11
 
11
 
#ifdef WIN32
12
 
#include <stdlib.h>
13
 
#endif
14
12
 
15
13
time_t rrd_first(
16
14
    int argc,
68
66
    rrd_t     rrd;
69
67
    rrd_file_t *rrd_file;
70
68
 
 
69
    rrd_init(&rrd);
71
70
    rrd_file = rrd_open(filename, &rrd, RRD_READONLY);
72
71
    if (rrd_file == NULL) {
73
72
        goto err_free;