]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
fixed typo.
authorRogier Wolff <R.E.Wolff@BitWizard.nl>
Mon, 22 Aug 2016 06:37:51 +0000 (08:37 +0200)
committerRogier Wolff <R.E.Wolff@BitWizard.nl>
Mon, 22 Aug 2016 06:37:51 +0000 (08:37 +0200)
curses.c
display.h
mtr.c

index e8856a2d762c7ada8f298d67b0d6a5d2ccdeabcc..eaf19f5a5f121e5100401b73a51367a1142b374d 100644 (file)
--- a/curses.c
+++ b/curses.c
@@ -668,7 +668,7 @@ extern void mtr_curses_redraw(void)
   attron(A_BOLD); printw("O"); attroff(A_BOLD); printw("rder of fields   ");
   attron(A_BOLD); printw("q"); attroff(A_BOLD); printw("uit\n");
   
-  if (display_mode == DisplayModeDefalt) {
+  if (display_mode == DisplayModeDefault) {
     for (i=0; i < MAXFLD; i++ ) {
        j = fld_index[fld_active[i]];
        if (j < 0) continue;
index 26ef3a3d411ba8c62e07907a0386c9a85e4d8879..36670a9cf1cfd724ce66c340524588a4e809c145 100644 (file)
--- a/display.h
+++ b/display.h
@@ -44,7 +44,7 @@ enum {
 };
 
 enum {
-  DisplayModeDefalt,
+  DisplayModeDefault,
   DisplayModeBlockmap,
   DisplayModeMAX       /* this must be the last DisplayMode entry */
 };
diff --git a/mtr.c b/mtr.c
index d6e96c735abddb59a59af742341eab23054e9a88..3358c4a0d14212bc4a7fcba9bdba5fbdbb6e6e8f 100644 (file)
--- a/mtr.c
+++ b/mtr.c
@@ -480,7 +480,7 @@ static void parse_arg (int argc, char **argv)
       display_mode = strtoint_or_err(optarg, "invalid argument");
       if ((DisplayModeMAX - 1) < display_mode)
         error(EXIT_FAILURE, 0, "value out of range (%d - %d): %s",
-              DisplayModeDefalt, (DisplayModeMAX - 1), optarg);
+              DisplayModeDefault, (DisplayModeMAX - 1), optarg);
       break;
     case 'c':
       MaxPing = strtoint_or_err(optarg, "invalid argument");
@@ -723,7 +723,7 @@ extern int main(int argc, char **argv)
   srand (getpid());
 
   display_detect(&argc, &argv);
-  display_mode = DisplayModeDefalt;
+  display_mode = DisplayModeDefault;
 
   /* The field options are now in a static array all together,
      but that requires a run-time initialization. */