summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1710d9)
raw | patch | inline | side by side (parent: a1710d9)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 6 Jun 2009 19:09:33 +0000 (21:09 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 16 Jul 2009 16:48:38 +0000 (18:48 +0200) |
src/oping.c | patch | blob | history |
diff --git a/src/oping.c b/src/oping.c
index c901223acc18826ef495a527d03f9dc4e01b558b..06fb80143f7c7176fffeb7a35555835b209d4676 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
new_count = atoi (optarg);
if (new_count > 0)
opt_count = new_count;
+ else
+ fprintf(stderr, "Ignoring invalid count: %s\n",
+ optarg);
}
break;
double new_interval;
new_interval = atof (optarg);
if (new_interval < 0.001)
- fprintf (stderr, "Ignoring invalid interval %g.\n",
- new_interval);
+ fprintf (stderr, "Ignoring invalid interval: %s\n",
+ optarg);
else
opt_interval = new_interval;
}
if ((new_send_ttl > 0) && (new_send_ttl < 256))
opt_send_ttl = new_send_ttl;
else
- fprintf (stderr, "Invalid TTL argument: %s\n",
+ fprintf (stderr, "Ignoring invalid TTL argument: %s\n",
optarg);
break;
}