]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
mtr v0.30 v0.30
authorRoger Wolff <r.e.wolff@bitwizard.nl>
Thu, 4 Mar 1999 00:00:00 +0000 (00:00 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 3 Feb 2013 20:45:36 +0000 (20:45 +0000)
 - Fixed a typo in the changelog (NEWS) entry for 0.27. :-) added use
   of "MTR_OPTIONS" environment variable for defaults.

source: ftp://ftp.bitwizard.nl/mtr/mtr-0.30.tar.gz

NEWS
configure.in
mtr.c

diff --git a/NEWS b/NEWS
index 3ed50aac2dccbc409c077887e7f152c766705ab9..33da46afb6ea0de3d5defe5203d810b96770f4ca 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,9 @@
 WHAT'S NEW?
 
+  v0.30 Fixed a typo in the changelog (NEWS) entry for 0.27. :-)
+       added use of "MTR_OPTIONS" environment variable for defaults.
+
+
   v0.29 Lots of stuff. 
         Neato overview display by David Sward. 
         FreeBSD does wrong in the kernel the same that Solaris/x86 (see 
@@ -14,7 +18,7 @@ WHAT'S NEW?
 
   v0.27
        Fixed bug that showed up on Solaris/x86.
-       Gimp mainloop now runs as it's supposed to.
+       GTK mainloop now runs as it's supposed to.
 
   v0.26
         Added "-n" flag for numeric output. 
index 1dc26cb2292016937c27936e0fdf26963622c0f9..00cad60d57e39f10fc22584df447d9b7bc98950d 100644 (file)
@@ -1,5 +1,5 @@
 AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.29)
+AM_INIT_AUTOMAKE(mtr, 0.30)
 
 AC_SUBST(GTK_OBJ)
 AC_SUBST(CURSES_OBJ)
diff --git a/mtr.c b/mtr.c
index e80a8f90c02f5a9825a5d40d7f2d02dc40c7e22d..81fd74b170f56f6371230aa77a765b26036711a8 100644 (file)
--- a/mtr.c
+++ b/mtr.c
@@ -109,6 +109,31 @@ void parse_arg(int argc, char **argv) {
 
 }
 
+
+void parse_mtr_options (char *string)
+{
+  int argc;
+  char *argv[128], *p;
+  int i;
+
+  if (!string) return;
+
+  argv[0] = "mtr";
+  argc = 1;
+  p = strtok (string, " \t");
+  while (p) {
+    argv[argc++] = p;
+    p = strtok (NULL, " \t");
+  }
+  parse_arg (argc, argv);
+  optind = 0;
+}
+
+
+
+
+
+
 int main(int argc, char **argv) {
   int traddr;
   struct hostent *host;
@@ -131,6 +156,9 @@ int main(int argc, char **argv) {
   }
   
   display_detect(&argc, &argv);
+
+  parse_mtr_options (getenv ("MTR_OPTIONS"));
+
   parse_arg(argc, argv);
 
   if(PrintVersion) {