X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_last.c;h=0101f68c3db073fd95c53e13d64f90024917077e;hb=6801c3fb1c505c5534218100fab7888e140ca359;hp=78ba5a360823dfa16d235fe1073cbdc9a0a62969;hpb=298b318acaf1147474ab9e97cac37c3608660efd;p=rrdtool.git diff --git a/src/rrd_last.c b/src/rrd_last.c index 78ba5a3..0101f68 100644 --- a/src/rrd_last.c +++ b/src/rrd_last.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2002 + * RRDtool 1.2.18 Copyright by Tobi Oetiker, 1997-2006 ***************************************************************************** * rrd_last.c ***************************************************************************** @@ -11,21 +11,17 @@ time_t rrd_last(int argc, char **argv) { - time_t lastup; - if(argc < 2){ rrd_set_error("please specify an rrd"); return(-1); } - lastup = rrd_last_r(argv[1]); - - return(lastup); + return( rrd_last_r(argv[1]) ); } time_t -rrd_last_r(char *filename) +rrd_last_r(const char *filename) { FILE *in_file; time_t lastup;