diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-07-24 12:27:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 12:27:06 (GMT) |
commit | 43131b73d69e77a3faee69814dac1bbc88162887 (patch) | |
tree | 8e3b4a532717659649954b879fb685fce353e863 /configure.ac | |
parent | af06d34071608641295eecd46edb0c4dbde13872 (diff) | |
parent | 7c3098270c5481f64438525be5883f070ebc16a1 (diff) | |
download | monitoring-plugins-43131b73d69e77a3faee69814dac1bbc88162887.tar.gz |
Merge pull request #1876 from RincewindsHat/check_swap_scanf_expressions
Changing remaining sscanf format specifier to unsigned long
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index bad5c53..069cc62 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1592,13 +1592,13 @@ then | |||
1592 | grep -E -i "^lswap +path +pri +swaplo +blocks +free +maxswap" \ | 1592 | grep -E -i "^lswap +path +pri +swaplo +blocks +free +maxswap" \ |
1593 | >/dev/null] | 1593 | >/dev/null] |
1594 | then | 1594 | then |
1595 | ac_cv_swap_format=[" %*d %*s %*d,%*d %*d %*d %f %f"] | 1595 | ac_cv_swap_format=[" %*d %*s %*d,%*d %*d %*d %lu %lu"] |
1596 | ac_cv_swap_conv=2048 | 1596 | ac_cv_swap_conv=2048 |
1597 | AC_MSG_RESULT([using IRIX format swap]) | 1597 | AC_MSG_RESULT([using IRIX format swap]) |
1598 | 1598 | ||
1599 | elif [$PATH_TO_SWAP -l 2>/dev/null | grep -E -i "^path +dev +swaplo +blocks +free" >/dev/null] | 1599 | elif [$PATH_TO_SWAP -l 2>/dev/null | grep -E -i "^path +dev +swaplo +blocks +free" >/dev/null] |
1600 | then | 1600 | then |
1601 | ac_cv_swap_format=["%*s %*[0-9,-] %*d %f %f"] | 1601 | ac_cv_swap_format=["%*s %*[0-9,-] %*d %lu %lu"] |
1602 | ac_cv_swap_conv=2048 | 1602 | ac_cv_swap_conv=2048 |
1603 | AC_MSG_RESULT([using Unixware format swap]) | 1603 | AC_MSG_RESULT([using Unixware format swap]) |
1604 | else | 1604 | else |
@@ -1622,7 +1622,7 @@ then | |||
1622 | 1622 | ||
1623 | if [$PATH_TO_SWAPINFO -k 2>/dev/null | grep -E -i "^Device +1K-blocks +Used +Avail" >/dev/null] | 1623 | if [$PATH_TO_SWAPINFO -k 2>/dev/null | grep -E -i "^Device +1K-blocks +Used +Avail" >/dev/null] |
1624 | then | 1624 | then |
1625 | ac_cv_swap_format=["%*s %f %*d %f"] | 1625 | ac_cv_swap_format=["%*s %lu %*d %lu"] |
1626 | ac_cv_swap_conv=1024 | 1626 | ac_cv_swap_conv=1024 |
1627 | AC_MSG_RESULT([using FreeBSD format swapinfo]) | 1627 | AC_MSG_RESULT([using FreeBSD format swapinfo]) |
1628 | fi | 1628 | fi |
@@ -1631,7 +1631,7 @@ elif [$PATH_TO_SWAPINFO -dfM 2>/dev/null | grep -E -i "^TYPE +AVAIL +USED +FREE" | |||
1631 | then | 1631 | then |
1632 | ac_cv_have_swap=yes | 1632 | ac_cv_have_swap=yes |
1633 | ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM" | 1633 | ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM" |
1634 | ac_cv_swap_format=["%*s %f %*d %f"] | 1634 | ac_cv_swap_format=["%*s %lu %*d %lu"] |
1635 | ac_cv_swap_conv=1024 | 1635 | ac_cv_swap_conv=1024 |
1636 | AC_MSG_RESULT([using HP-UX format swapinfo]) | 1636 | AC_MSG_RESULT([using HP-UX format swapinfo]) |
1637 | fi | 1637 | fi |
@@ -1646,7 +1646,7 @@ if [$PATH_TO_LSPS -a 2>/dev/null | grep -E -i "^Page Space" > /dev/null] | |||
1646 | then | 1646 | then |
1647 | ac_cv_have_swap=yes | 1647 | ac_cv_have_swap=yes |
1648 | ac_cv_swap_command="$PATH_TO_LSPS -a" | 1648 | ac_cv_swap_command="$PATH_TO_LSPS -a" |
1649 | ac_cv_swap_format=["%*s %*s %*s %f%*s %f %*s"] | 1649 | ac_cv_swap_format=["%*s %*s %*s %lu%*s %lu %*s"] |
1650 | ac_cv_swap_conv=1 | 1650 | ac_cv_swap_conv=1 |
1651 | AC_MSG_RESULT([using AIX lsps]) | 1651 | AC_MSG_RESULT([using AIX lsps]) |
1652 | fi | 1652 | fi |