/*****************************************************************************
- * RRDtool 1.2.99907080300 Copyright by Tobi Oetiker, 1997-2007
+ * RRDtool 1.3rc5 Copyright by Tobi Oetiker, 1997-2008
*****************************************************************************
* rrd_info Get Information about the configuration of an RRD
*****************************************************************************/
break;
case RD_I_BLO:
next->value.u_blo.size = value.u_blo.size;
- next->value.u_blo.ptr = malloc(sizeof(unsigned char)*value.u_blo.size);
- memcpy(next->value.u_blo.ptr,value.u_blo.ptr,value.u_blo.size);
+ next->value.u_blo.ptr =
+ malloc(sizeof(unsigned char) * value.u_blo.size);
+ memcpy(next->value.u_blo.ptr, value.u_blo.ptr, value.u_blo.size);
break;
}
return (next);
void info_print(
info_t *data)
{
- long image_length = 0;
-
while (data) {
printf("%s = ", data->key);
case RD_I_STR:
printf("\"%s\"\n", data->value.u_str);
break;
- case RD_I_BLO:
+ case RD_I_BLO:
printf("BLOB_SIZE:%lu\n", data->value.u_blo.size);
fwrite(data->value.u_blo.ptr, data->value.u_blo.size, 1, stdout);
break;