diff mbox

iputils ping,ping6: use sig_atomic_t for flags set by signal handlers

Message ID alpine.DEB.1.10.1009051432540.13886@red.crap.retrofitta.se
State Not Applicable, archived
Delegated to: David Miller
Headers show

Commit Message

Thomas Habets Sept. 5, 2010, 12:52 p.m. UTC
Required by ISO C99 7.14.1.1 paragraph 5.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

YOSHIFUJI Hideaki / 吉藤英明 Sept. 21, 2010, 6:05 a.m. UTC | #1
Hi,

(2010/09/05 21:52), Thomas Habets wrote:
> 
> Required by ISO C99 7.14.1.1 paragraph 5.

Applied, thanks.

--yoshfuji
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/ping_common.c b/ping_common.c
index 82320b1..e0edf39 100644
--- a/ping_common.c
+++ b/ping_common.c
@@ -27,8 +27,8 @@  int preload;
  int deadline = 0;              /* time to die */
  int lingertime = MAXWAIT*1000;
  struct timeval start_time, cur_time;
-volatile int exiting;
-volatile int status_snapshot;
+volatile sig_atomic_t exiting;
+volatile sig_atomic_t status_snapshot;
  int confirm = 0;

  /* Stupid workarounds for bugs/missing functionality in older linuces.