[Openvpn-devel,v1] Fix typo of nprocs instead of nproc in run-cppcheck.sh

Message ID 20261026110205.55077-1-frank@lichtenheld.com
State New
Headers
Series [Openvpn-devel,v1] Fix typo of nprocs instead of nproc in run-cppcheck.sh |

Commit Message

Frank Lichtenheld Oct. 26, 2026, 11:02 a.m. UTC
  From: Arne Schwabe <arne@rfc2549.org>

Commit ccd058e75 accidentally used nprocs instead nproc, making the
script fail on Linux.

Change-Id: I136d57b7487f228e37894fa710b1ccc2c4606eb5
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Antonio Quartulli <antonio@mandelbit.com>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2031
---

This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2031
This mail reflects revision 1 of this Change.

Acked-by according to Gerrit (reflected above):
Antonio Quartulli <antonio@mandelbit.com>
Frank Lichtenheld <frank@lichtenheld.com>
  

Comments

Gert Doering Oct. 26, 2026, 2:15 p.m. UTC | #1
That's what I get for not running the test on the original commit...
(... but I might not have caught it, assuming "Linux will be fine, test
the new stuff"...)

Your patch has been applied to the master branch.

commit 766320d69bc402e700fe4d014d3738ec8a9441da
Author: Arne Schwabe
Date:   Mon Oct 26 12:02:05 2026 +0100

     Fix typo of nprocs instead of nproc in run-cppcheck.sh

     Signed-off-by: Arne Schwabe <arne@rfc2549.org>
     Acked-by: Antonio Quartulli <antonio@mandelbit.com>
     Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2031
     Message-Id: <20261026110205.55077-1-frank@lichtenheld.com>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg40134.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering
  

Patch

diff --git a/dev-tools/run-cppcheck.sh b/dev-tools/run-cppcheck.sh
index 58609b2..a9c4643 100755
--- a/dev-tools/run-cppcheck.sh
+++ b/dev-tools/run-cppcheck.sh
@@ -22,7 +22,7 @@ 
     num_procs=$(sysctl -n hw.ncpu)
 else
     SCRIPT_DIR=$(dirname $(readlink -e "${BASH_SOURCE[0]}"))
-    num_procs=$(nprocs)
+    num_procs=$(nproc)
 fi
 : ${SOURCE_DIR:=$SCRIPT_DIR/..}
 : ${BUILD_DIR:=$PWD}