X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_restore.c;h=53b25be2ef49d48b6771b543950fb7dd0444c08b;hb=46d2e915a9f864304ee107f9ea35a60b01d3e378;hp=fa8493adf893b45ca91040fb18138fe8e7583004;hpb=9dba554e59319d13076a8184c7889cca868b4c85;p=rrdtool.git diff --git a/src/rrd_restore.c b/src/rrd_restore.c index fa8493a..53b25be 100644 --- a/src/rrd_restore.c +++ b/src/rrd_restore.c @@ -1,30 +1,32 @@ /***************************************************************************** - * RRDtool 1.2.99907080300 Copyright by Tobi Oetiker, 1997-2007 + * RRDtool 1.3rc7 Copyright by Tobi Oetiker, 1997-2008 * This file: Copyright 2008 Florian octo Forster * Distributed under the GPL ***************************************************************************** - * rrd_thread_safe.c Contains routines used when thread safety is required + * rrd_restore.c Contains logic to parse XML input and create an RRD file ***************************************************************************** * $Id$ *************************************************************************** */ -* *This program is free software; -you can redistribute it and / or modify it - * - under the terms of the GNU General Public License as published by the Free - * Software Foundation; -either version 2 of the License, or( - at your option) -* any later version. - * *This program is distributed in the hope that it will be useful, -but WITHOUT * ANY WARRANTY; - without even the implied warranty of MERCHANTABILITY or - * - FITNESS FOR A PARTICULAR PURPOSE. - See the GNU General Public License for *more details. * - *You should have received a copy of the GNU General Public License - along * with this program; if not - , write to the Free Software Foundation, Inc., *51 Franklin St, Fifth Floor, Boston, MA 02110 - 1301 USA * *Authors: - *Florian octo Forster < octo at verplant.org > **/ + +/* + * This program is free software; you can redistribute it and / or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (t your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110 - 1301 USA + * + * Authors: + * Florian octo Forster + **/ + #include #include #include @@ -40,13 +42,13 @@ but WITHOUT * ANY WARRANTY; #include "rrd_tool.h" #include "rrd_rpncalc.h" #define ARRAY_LENGTH(a) (sizeof (a) / sizeof ((a)[0])) - static int opt_range_check = 0; - static int opt_force_overwrite = 0; +static int opt_range_check = 0; +static int opt_force_overwrite = 0; /* * Auxiliary functions */ - static int get_string_from_node( +static int get_string_from_node( xmlDoc * doc, xmlNode * node, char *buffer, @@ -161,7 +163,7 @@ static int value_check_range( if (((!isnan(min)) && (*rrd_value < min)) || ((!isnan(max)) && (*rrd_value > max))) - *rrd_value = NAN; + *rrd_value = DNAN; return (0); } /* int value_check_range */