X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_update.c;h=fa60c0b47d21c26904a1dc1b3e3ce59e04a992f4;hb=271be77064640b1daa3408885d60b8bead1126ad;hp=1feecac58f8ba2862d68ba30badbf4f7ec866de6;hpb=51fcea2cbf9721f012f2f0d43c604a3aaf684ee8;p=rrdtool.git diff --git a/src/rrd_update.c b/src/rrd_update.c index 1feecac..fa60c0b 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -135,16 +135,16 @@ info_t *rrd_update_v( char *tmplt = NULL; info_t *result = NULL; infoval rc; + struct option long_options[] = { + {"template", required_argument, 0, 't'}, + {0, 0, 0, 0} + }; rc.u_int = -1; optind = 0; opterr = 0; /* initialize getopt */ while (1) { - static struct option long_options[] = { - {"template", required_argument, 0, 't'}, - {0, 0, 0, 0} - }; int option_index = 0; int opt;