removed unfinished stuff

This commit is contained in:
Steffen Vogel 2011-09-15 23:21:56 +02:00
parent 44f9784732
commit 88d2905fe2
2 changed files with 6 additions and 9 deletions

View file

@ -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];

View file

@ -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");