aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-02-22 11:45:10 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-02-22 12:52:06 +0200
commitc15bf2380377abf2e8abb91892eb172d5062d75c (patch)
tree22c3a48161a4ee4d0c46d99bfc71f4cc2c8c3950
parentdcbeb57089029a933397fe238f986e8bc8bf1f3a (diff)
downloadping903-c15bf2380377abf2e8abb91892eb172d5062d75c.tar.gz
ping903-c15bf2380377abf2e8abb91892eb172d5062d75c.tar.bz2
Minor changes, Version 0.3v0.3
-rw-r--r--configure.ac2
-rw-r--r--src/ping903.c8
-rw-r--r--src/pinger.c3
3 files changed, 7 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 3105332..0831e7e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@
# along with Ping903. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ([2.69])
-AC_INIT([Ping903], [0.2], [gray@gnu.org],
+AC_INIT([Ping903], [0.3], [gray@gnu.org],
[ping903],
[https://puszcza.gnu.org.ua/projects/ping903/])
AC_CONFIG_SRCDIR([src/main.c])
diff --git a/src/ping903.c b/src/ping903.c
index 4e5310f..bda2314 100644
--- a/src/ping903.c
+++ b/src/ping903.c
@@ -488,12 +488,12 @@ ping903(void)
sigdelset(&sigs, SIGPIPE);
pthread_sigmask(SIG_UNBLOCK, &sigs, NULL);
- /* Start the Scheduler thread */
- pthread_create(&tid, NULL, p903_scheduler, NULL);
- /* Start the Sender thread */
- pthread_create(&tid, NULL, p903_sender, NULL);
/* Start the Receiver thread */
pthread_create(&tid, NULL, p903_receiver, NULL);
+ /* Start the Sender thread */
+ pthread_create(&tid, NULL, p903_sender, NULL);
+ /* Start the Scheduler thread */
+ pthread_create(&tid, NULL, p903_scheduler, NULL);
/* Wait for signal to arrive */
sigwait(&sigs, &i);
diff --git a/src/pinger.c b/src/pinger.c
index 3ee36dd..cbc80d2 100644
--- a/src/pinger.c
+++ b/src/pinger.c
@@ -763,7 +763,8 @@ p903_receiver(void *p)
host->recv_count++;
if (verbose > 1)
- log_echo((struct sockaddr *)&addr, addrlen, icmp, ip, n, rtt);
+ log_echo((struct sockaddr *)&addr, addrlen,
+ icmp, ip, n, rtt);
if (host->recv_count == ping_count)
host_stat_commit(host);
} else

Return to:

Send suggestions and report system problems to the System administrator.