Skip to content

Commit

Permalink
add _GNU_SOURCE to fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
schweikert committed Jan 1, 2020
1 parent 410e66d commit aba0424
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ UNRELEASED

- Corrected long option name of -s to --stats (#148, thanks @wopfel)
- Do not fail if using fping6 with -6 flag (#149, thanks @stromnet)
- Fail if interface binding (-I) does not work (#162, by @kbucheli)
- Fail if interface binding (-I) does not work (#162, thanks @kbucheli)
- Fix using option -4 when fping is compiled IPv4-only (#154, thanks @pbhenson)

fping 4.2 (2019-02-19)
======================
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dnl Minimum Autoconf version required.
AC_PREREQ(2.59)

AC_INIT([fping],[4.2])
AC_GNU_SOURCE

dnl --disable-ipv4
AC_ARG_ENABLE([ipv4],
Expand Down
4 changes: 2 additions & 2 deletions src/fping.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
extern "C" {
#endif /* __cplusplus */

#include "config.h"
#include "fping.h"
#include "options.h"
#include "optparse.h"
Expand All @@ -44,7 +45,6 @@ extern "C" {
#include <stdio.h>
#include <time.h>

#include "config.h"
#include "seqmap.h"

#ifdef HAVE_UNISTD_H
Expand Down Expand Up @@ -608,7 +608,7 @@ int main(int argc, char** argv)
break;

case 'H':
if (!(ttl = (u_int)atoi(optparse_state.optarg)))
if (!(ttl = (unsigned int)atoi(optparse_state.optarg)))
usage(1);
break;

Expand Down
1 change: 1 addition & 0 deletions src/seqmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* https://github.com/schweikert/fping/issues/48
*/

#include "config.h"
#include "seqmap.h"
#include "limits.h"
#include "options.h"
Expand Down

0 comments on commit aba0424

Please sign in to comment.