Fixes typo in deprecated options warning
Paul Biester committed
Jun 6, 2016 at 13:57 UTC
370266274fd397a6a7956784dda7ed3a2160e94c
1 file changed
+6
-6
src/main.c
+6
-6
@@ -318,22 +318,22 @@ int main(int argc, char **argv)
318
while(i < argc) {
319
if(strcmp(argv[i], "-pidfile") == 0 && (i+1) < argc) {
320
strncpyz(pidfile, argv[i+1], FILENAME_MAX);
321
- fprintf(stderr, "%s: deprecate option -- %s -- please use -P instead.\n", argv[0], argv[i]);
321
+ fprintf(stderr, "%s: deprecated option -- %s -- please use -P instead.\n", argv[0], argv[i]);
322
remove_option(i, &argc, argv);
323
}
324
else if(strcmp(argv[i], "-nodaemon") == 0 || strcmp(argv[i], "-nd") == 0) {
325
dont_fork = 1;
326
- fprintf(stderr, "%s: deprecate option -- %s -- please use -D instead.\n ", argv[0], argv[i]);
326
+ fprintf(stderr, "%s: deprecated option -- %s -- please use -D instead.\n ", argv[0], argv[i]);
327
remove_option(i, &argc, argv);
328
}
329
else if(strcmp(argv[i], "-ch") == 0 && (i+1) < argc) {
330
config_set("global", "host access prefix", argv[i+1]);
331
- fprintf(stderr, "%s: deprecate option -- %s -- please use -s instead.\n", argv[0], argv[i]);
331
+ fprintf(stderr, "%s: deprecated option -- %s -- please use -s instead.\n", argv[0], argv[i]);
332
remove_option(i, &argc, argv);
333
}
334
else if(strcmp(argv[i], "-l") == 0 && (i+1) < argc) {
335
config_set("global", "history", argv[i+1]);
336
- fprintf(stderr, "%s: deprecate option -- %s -- This option will be rmoved with V2.*.\n", argv[0], argv[i]);
336
+ fprintf(stderr, "%s: deprecated option -- %s -- This option will be removed with V2.*.\n", argv[0], argv[i]);
337
remove_option(i, &argc, argv);
338
}
339
else i++;
@@ -398,7 +398,7 @@ int main(int argc, char **argv)
398
printf("netdata 1.1.0\n");
399
return 0;
400
break;
401
- case 'W':
401
+ case 'W':
402
{
403
char* stacksize = "stacksize=";
404
char* debug_flags_string = "debug_flags=";
@@ -422,7 +422,7 @@ int main(int argc, char **argv)
422
help(1);
423
break;
424
}
425
- }
425
+ }
426
}
427
428
if(!config_loaded) load_config(NULL, 0);