aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authormochalins <117967760+mochalins@users.noreply.github.com>2025-05-23 17:02:52 +0900
committerGarrett D'Amore <garrett@damore.org>2025-06-02 07:24:06 -0700
commit4e1ffdca6d97c1bddc460835c94b16bc64284861 (patch)
tree80c27b0e509c8d7001619af27a33794f4bcad3c4 /src/tools
parent1323aece0712522ccb2bf432b5085889a3513fa8 (diff)
downloadnng-4e1ffdca6d97c1bddc460835c94b16bc64284861.tar.gz
nng-4e1ffdca6d97c1bddc460835c94b16bc64284861.tar.bz2
nng-4e1ffdca6d97c1bddc460835c94b16bc64284861.zip
Fix typos across docs, comments, and CMake
Diffstat (limited to 'src/tools')
-rwxr-xr-xsrc/tools/nngcat/nngcat_ambiguous_test.sh2
-rw-r--r--src/tools/perf/pubdrop.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/nngcat/nngcat_ambiguous_test.sh b/src/tools/nngcat/nngcat_ambiguous_test.sh
index 944d5aed..264d4704 100755
--- a/src/tools/nngcat/nngcat_ambiguous_test.sh
+++ b/src/tools/nngcat/nngcat_ambiguous_test.sh
@@ -17,7 +17,7 @@ CMD="${NNGCAT} --re --dial=tcp://127.0.0.1:27272"
echo -n "Verify ambiguous options fail: "
if ${CMD} >/dev/null 2>&1
then
- echo "Failed: ambigous accepted"
+ echo "Failed: ambiguous accepted"
exit 1
fi
x=$(${CMD} 2>&1)
diff --git a/src/tools/perf/pubdrop.c b/src/tools/perf/pubdrop.c
index 1788a3cf..83524609 100644
--- a/src/tools/perf/pubdrop.c
+++ b/src/tools/perf/pubdrop.c
@@ -108,7 +108,7 @@ parse_int(const char *arg, const char *what)
char *eptr;
val = strtol(arg, &eptr, 10);
- // Must be a postive number less than around a billion.
+ // Must be a positive number less than around a billion.
if ((val < 0) || (val > (1 << 30)) || (*eptr != 0) || (eptr == arg)) {
die("Invalid %s", what);
}