+ rrd_info_t *info;
+ char *opt_daemon = NULL;
+ int status;
+ int flushfirst = 1;
+
+ optind = 0;
+ opterr = 0; /* initialize getopt */
+
+ while (42) {
+ int opt;
+ int option_index = 0;
+ static struct option long_options[] = {
+ {"daemon", required_argument, 0, 'd'},
+ {"noflush", no_argument, 0, 'F'},
+ {0, 0, 0, 0}
+ };
+
+ opt = getopt_long(argc, argv, "d:F", long_options, &option_index);
+
+ if (opt == EOF)
+ break;