removed unfinished stuff
This commit is contained in:
parent
44f9784732
commit
88d2905fe2
2 changed files with 6 additions and 9 deletions
|
@ -40,7 +40,7 @@
|
|||
|
||||
extern meter_type_t meter_types[];
|
||||
|
||||
const options_t opts = { /* setting default options */
|
||||
options_t opts = { /* setting default options */
|
||||
"/etc/vzlogger.conf", /* config file */
|
||||
8080, /* port for local interface */
|
||||
0, /* verbosity level */
|
||||
|
@ -170,7 +170,6 @@ void parse_channels(char *filename, list_t *chans) {
|
|||
channel_t ch;
|
||||
|
||||
meter_type_t *type;
|
||||
meter_conn_t connection;
|
||||
|
||||
/* parse tokens (required) */
|
||||
memset(tokens, 0, 5);
|
||||
|
@ -216,9 +215,7 @@ void parse_channels(char *filename, list_t *chans) {
|
|||
else {
|
||||
interval = 0;
|
||||
}
|
||||
|
||||
/* connection */
|
||||
|
||||
|
||||
/* options (optional) */
|
||||
options = tokens[type->periodical ? 4 : 3];
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
/* global variables */
|
||||
list_t chans;
|
||||
extern const options_t opts;
|
||||
extern options_t opts;
|
||||
extern const char *long_options_descs[];
|
||||
extern const struct option long_options[];
|
||||
extern const meter_type_t meter_types[];
|
||||
|
@ -55,9 +55,9 @@ extern const meter_type_t meter_types[];
|
|||
* Print available options and some other usefull information
|
||||
*/
|
||||
void usage(char *argv[]) {
|
||||
char **desc = long_options_descs;
|
||||
struct option *op = long_options;
|
||||
meter_type_t *type = meter_types;
|
||||
const char **desc = long_options_descs;
|
||||
const struct option *op = long_options;
|
||||
const meter_type_t *type = meter_types;
|
||||
|
||||
printf("Usage: %s [options]\n\n", argv[0]);
|
||||
printf(" following options are available:\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue